According to J. op den Brouw:
> first some compilation warnings. Htdig works okay, though!
> 
> c++ -c  -DDEFAULT_CONFIG_FILE=\"/usr/local/htdig/conf/htdig.conf\"
> -I../htlib -I../htcommon -I../db/dist -I../rx/rx -I../include -g -O2
> Connection.cc
> Connection.cc: In method `Connection::Connection(int)':
> Connection.cc:98: warning: passing `unsigned int *' as argument 3 of
> `getpeername(int, sockaddr *, int *)' changes signedness
> Connection.cc: In method `int Connection::get_port()':
> Connection.cc:322: warning: passing `unsigned int *' as argument 3 of
> `getsockname(int, sockaddr *, int *)' changes signedness
> Connection.cc: In method `class Connection * Connection::accept(int =
> 0)':
> Connection.cc:348: warning: passing `unsigned int *' as argument 3 of
> `accept(int, sockaddr *, int *)' changes signedness
> Connection.cc:360: warning: passing `unsigned int *' as argument 3 of
> `getpeername(int, sockaddr *, int *)' changes signedness
> Connection.cc: In method `char * Connection::get_peername()':
> Connection.cc:481: warning: passing `unsigned int *' as argument 3 of
> `getpeername(int, sockaddr *, int *)' changes signedness
> Connection.cc: In method `char * Connection::get_peerip()':
> Connection.cc:505: warning: passing `unsigned int *' as argument 3 of
> `getpeername(int, sockaddr *, int *)' changes signedness

I get those too, on libc5 based Linux systems (e.g. Red Hat 4.2), but
not on glibc (libc6) based Linux systems, like Red Hat 5.0 & up.  They're
harmless, really, because the length is always positive (or zero?), and
less than MAXINT, so it doesn't matter if you say it's an int or an
unsigned int.  It's just annoying, that's all.

If the compiler gives an error rather than a warning, then it's a problem,
but in 3.1.0b3, configure tests for this and tries an alternate type.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.

Reply via email to