Date: Mon, 06 Jan 2003 11:50:20 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: Mike Barcroft <mike@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/netinet6 ip6_fw.c Message-ID: <XFMail.20030106115020.jhb@FreeBSD.org> In-Reply-To: <200301060433.h064XkeJ051680@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06-Jan-2003 Mike Barcroft wrote: > mike 2003/01/05 20:33:46 PST > > Modified files: > sys/netinet6 ip6_fw.c > Log: > Cast return values of sizeof() to int so they can be printed with %d. > The size of this struct is unlikely to ever grow beyond what an int > can represent. Correctness (%z) is preferred to hacks if possible. The kernel printf always prints integers using uintmax_t, so downcasting doesn't really save anything. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ 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?XFMail.20030106115020.jhb>