Date: Tue, 3 Sep 2002 22:10:07 -0700 (PDT) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/42385: clean libatm code from warnings Message-ID: <200209040510.g845A706069840@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/42385; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> To: Dan Lukes <dan@obluda.cz> Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/42385: clean libatm code from warnings Date: Wed, 4 Sep 2002 15:06:44 +1000 (EST) On Tue, 3 Sep 2002, Dan Lukes wrote: > >Description: > lib/libatm/atm_addr.c: > 308: warning: long unsigned int format, __uint32_t arg (arg 3) > long unsigned int format, __uint32_t arg (arg 4) > #>> ntohl (despite of 'l' in it's name) > #>> return uint32_t ( = __uint32_t = unsigned int ) > #>> so 'l' modifier should not be used The format is correct. ntohl() returns a typedefed type which may be u_long. ntohl() still returns long or ulong on some systems like its name suggests. The values should be cast to u_long since the type is unknown. The type can be almost anything, but the values are known to be representable as u_longs. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209040510.g845A706069840>