Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 81344 invoked by uid 500); 26 Feb 2001 01:07:09 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 81320 invoked from network); 26 Feb 2001 01:07:08 -0000 Date: Sun, 25 Feb 2001 17:07:14 -0800 (PST) From: dean gaudet To: Subject: Re: cvs commit: httpd-2.0/modules/generators mod_status.c In-Reply-To: <3A8D2423.47FEB523@Golux.Com> Message-ID: X-comment: visit http://arctic.org/~dean/legal for information regarding copyright and disclaimer. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Fri, 16 Feb 2001, Rodent of Unusual Size wrote: > Greg Stein wrote: > > > > The type was apr_uint32_t and the format was %ld. Those are > > compatible. > > Um, do not some platforms define a 'long int' as 64 bits? yup. if you look at the C99 standard you'll see that stdint.h defines macros for declaring constants of a particular size (INT8_C(), INT16_C(), ...), and macros expanding to the right size qualifiers for printf/scanf. (i forget what the latter are.) there was some effort to do this in APR ... i see in my, now many months old, 2.0 tree that there's macros such as APR_SSIZE_T_FMT, APR_SIZE_T_FMT, and APR_OFF_T_FMT. the correct fix is to start defining things such as APR_UINT32_T_FMT, APR_TIME_T_FMT, ... -dean