From owner-cvs-all Sat Jun 16 18:19:41 2001 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 1D92737B401; Sat, 16 Jun 2001 18:19:26 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id DAA42908; Sun, 17 Jun 2001 03:19:22 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Garrett Wollman Cc: Jonathan Lemon , Jonathan Lemon , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/rarpd rarpd.c References: <200106160640.f5G6e4J30312@freefall.freebsd.org> <20010616180611.B1956@ringworld.oblivion.bg> <20010616110940.G68883@prism.flugsvamp.com> <200106161821.OAA38884@khavrinen.lcs.mit.edu> From: Dag-Erling Smorgrav Date: 17 Jun 2001 03:19:21 +0200 In-Reply-To: <200106161821.OAA38884@khavrinen.lcs.mit.edu> Message-ID: Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Garrett Wollman writes: > 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'). I think you mean '%zu', ref. ISO/IEC 9899:1999 section 17.19.6.1 #7: z Specifies that a following d, i, o, u, x, or X conversion specifier applies to a size_t or the corresponding signed integer type argument; or that a following n conversion specifier applies to a pointer to a signed integer type corresponding to size_t argument. and ISO/IEC 9899:1999 section 7.17 #2: size_t which is the unsigned integer type of the result of the sizeof operator; DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message