From owner-cvs-all Mon Jan 6 8:50:15 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2BFD37B41C for ; Mon, 6 Jan 2003 08:50:14 -0800 (PST) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91E5343EB2 for ; Mon, 6 Jan 2003 08:50:13 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 10153 invoked from network); 6 Jan 2003 16:50:16 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 6 Jan 2003 16:50:16 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h06GoAUT076443; Mon, 6 Jan 2003 11:50:10 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200301060433.h064XkeJ051680@repoman.freebsd.org> Date: Mon, 06 Jan 2003 11:50:20 -0500 (EST) From: John Baldwin To: Mike Barcroft Subject: RE: cvs commit: src/sys/netinet6 ip6_fw.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org 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 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 <>< 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