From 82d03cb6cc04d9830eafa0fc1887e777dc6a64cb Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 12 Aug 1999 20:19:28 +0000 Subject: fix things Irix n32 cc complains about --- zwgc/exec.c | 4 ++-- zwgc/tty_filter.c | 8 ++++---- zwgc/xerror.c | 1 + zwgc/xshow.c | 1 + zwgc/zephyr.c | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) (limited to 'zwgc') diff --git a/zwgc/exec.c b/zwgc/exec.c index ad40d5b..1bf8f72 100644 --- a/zwgc/exec.c +++ b/zwgc/exec.c @@ -429,8 +429,8 @@ static int exec_subtree(node) /***************************************************************************/ static char *notice_fields; -static notice_fields_length = 0; -static number_of_fields = 0; +static int notice_fields_length = 0; +static int number_of_fields = 0; static int exec_fields(node) Node *node; diff --git a/zwgc/tty_filter.c b/zwgc/tty_filter.c index dcc12c2..86ab8f9 100644 --- a/zwgc/tty_filter.c +++ b/zwgc/tty_filter.c @@ -218,10 +218,10 @@ typedef struct _tty_str_info { int len; char alignment; /* 'l', 'c', 'r', or ' ' to indicate newline */ - int bold_p : 1; - int italic_p : 1; - int bell_p : 1; - int ignore: 1; + unsigned int bold_p : 1; + unsigned int italic_p : 1; + unsigned int bell_p : 1; + unsigned int ignore: 1; } tty_str_info; static void free_info(info) diff --git a/zwgc/xerror.c b/zwgc/xerror.c index 38c7fbd..33e389a 100644 --- a/zwgc/xerror.c +++ b/zwgc/xerror.c @@ -32,6 +32,7 @@ static int xerrortrap(dpy,xerrev) XErrorEvent *xerrev; { xerror_happened = 1; + return 0; } /*ARGSUSED*/ diff --git a/zwgc/xshow.c b/zwgc/xshow.c index fa3b2ce..d970ccc 100644 --- a/zwgc/xshow.c +++ b/zwgc/xshow.c @@ -43,6 +43,7 @@ extern unsigned long default_bgcolor; extern unsigned long default_fgcolor; extern unsigned long x_string_to_color(); +void xshowinit() { desc_context = XUniqueContext(); diff --git a/zwgc/zephyr.c b/zwgc/zephyr.c index 0bc403a..c5a3855 100644 --- a/zwgc/zephyr.c +++ b/zwgc/zephyr.c @@ -187,7 +187,7 @@ void zephyr_init(notice_handler) * <<<>>> */ mux_add_input_source(ZGetFD(), (void (*)())handle_zephyr_input, - (pointer)notice_handler); + notice_handler); zephyr_inited = 1; return; } -- cgit v1.2.3