From owner-cvs-all Sat Jun 16 11:22:12 2001 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id B252237B412; Sat, 16 Jun 2001 11:21:59 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id OAA38884; Sat, 16 Jun 2001 14:21:58 -0400 (EDT) (envelope-from wollman) Date: Sat, 16 Jun 2001 14:21:58 -0400 (EDT) From: Garrett Wollman Message-Id: <200106161821.OAA38884@khavrinen.lcs.mit.edu> To: Jonathan Lemon Cc: Jonathan Lemon , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/rarpd rarpd.c In-Reply-To: <20010616110940.G68883@prism.flugsvamp.com> References: <200106160640.f5G6e4J30312@freefall.freebsd.org> <20010616180611.B1956@ringworld.oblivion.bg> <20010616110940.G68883@prism.flugsvamp.com> 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 < said: > Yes - sizeof() appears to be a 'long int' on the alpha, but an 'int' > on the i386. The correct way to print the result of the `sizeof' operator using `printf()' in C89 is with the `%lu' format (and the argument cast to `unsigned long'), and in C99 is with the `%ju' format (and the argument cast to `uintmax_t'). This is true always, on every architecture, and has been true since C89 introduced size_t to begin with. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message