Date: Wed, 13 Jun 2001 04:56:00 -0700 (PDT) From: Bruce Evans <bde@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/rarpd rarpd.c Message-ID: <200106131156.f5DBu0o86165@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 2001/06/13 04:56:00 PDT
Modified files:
usr.sbin/rarpd rarpd.c
Log:
Fixed world breakage on systems where ntohl() doesn't return u_long
(e.g., on alphas, or even on i386's with a POSIX-200x-conformant
ntohl() (ntohl() returns uint32_t which is u_int on i386's)).
Fixed related bugs and bogons while I'm here:
- ntohl() was "fixed" for printing in 1 place by casting to
"(unsigned int )". This breaks the value on systems where u_int
is smaller than uint32_t, and has 2 style bugs.
- spell u_int consistently (never use "unsigned").
- break K&R support some more (don't cast malloc()'s arg to a wrong
type...).
Revision Changes Path
1.25 +5 -18 src/usr.sbin/rarpd/rarpd.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106131156.f5DBu0o86165>
