From owner-cvs-all Wed Jun 13 4:56:11 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A731D37B41B; Wed, 13 Jun 2001 04:56:00 -0700 (PDT) (envelope-from bde@FreeBSD.org) Received: (from bde@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5DBu0o86165; Wed, 13 Jun 2001 04:56:00 -0700 (PDT) (envelope-from bde) Message-Id: <200106131156.f5DBu0o86165@freefall.freebsd.org> From: Bruce Evans Date: Wed, 13 Jun 2001 04:56:00 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/rarpd rarpd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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