Subject: Re: signed char problem in route6d ?
To: None <current-users@netbsd.org>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: current-users
Date: 07/04/1999 23:01:14
On Sun, Jul 04, 1999 at 22:56:19 +0200, Erik Bertelsen wrote:
>
> When compiling route6d on a powermac, I get the following:
>
> cc -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror -Dss_len=__ss_len -Dss_family=__ss_family -DADVAPI -DINET6 -c /home/src/usr.sbin/route6d/route6d.c
> cc1: warnings being treated as errors
> /home/src/usr.sbin/route6d/route6d.c: In function `main':
> /home/src/usr.sbin/route6d/route6d.c:273: warning: comparison is always 1 due to limited range of data type
> *** Error code 1
>
> Stop.
>
>
> Maybe caused by char's signedness ?
>
> - Erik Bertelsen
>
Sorry for a followup instead of collecting things in one message, but the
same problem occurs in rtadvd at config.c, line 165, except that the comparison
result is always 0 here.
- Erik