From: H. Peter Anvin Date: Tue, 10 May 2005 04:30:08 GMT Subject: Re: [PATCH] minor Makefile and local-pull.c edits for Darwin Message-ID: <428038D0.5000706@zytor.com> In-Reply-To: <20050510021105.53984.qmail@web41213.mail.yahoo.com> Mark Allen wrote: > > Index: local-pull.c > =================================================================== > --- 972d8624458936868e6f392b40858b7c362af8cd/local-pull.c (mode:100644) > +++ uncommitted/local-pull.c (mode:100644) > @@ -71,7 +71,7 @@ > close(ofd); > if (status) > fprintf(stderr, "cannot write %s (%ld bytes)\n", > - dest_filename, st.st_size); > + dest_filename, (long) st.st_size); > else > pull_say("copy %s\n", hex); > return status; This is just plain WRONG. st.st_size is longer than long on many architectures, including Linux/i386. The easiest way to deal with it is to #include , use %jd and cast it to (intmax_t). That is, however, a C99-ism. -hpa