Module Name: src
Committed By: sjg
Date: Sat Jun 11 02:10:48 UTC 2011
Modified Files:
src/usr.bin/make: meta.c
Log Message:
Use %zu rather than cast
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/make/meta.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/meta.c
diff -u src/usr.bin/make/meta.c:1.18 src/usr.bin/make/meta.c:1.19
--- src/usr.bin/make/meta.c:1.18 Fri Jun 10 23:57:39 2011
+++ src/usr.bin/make/meta.c Sat Jun 11 02:10:48 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.18 2011/06/10 23:57:39 sjg Exp $ */
+/* $NetBSD: meta.c,v 1.19 2011/06/11 02:10:48 sjg Exp $ */
/*
* Implement 'meta' mode.
@@ -766,8 +766,8 @@
if (newsz <= bufsz)
newsz = ROUNDUP(fs.st_size, BUFSIZ);
if (DEBUG(META))
- fprintf(debug_file, "growing buffer %u -> %u\n",
- (unsigned int)bufsz, (unsigned int)newsz);
+ fprintf(debug_file, "growing buffer %zu -> %zu\n",
+ bufsz, newsz);
p = bmake_realloc(buf, newsz);
if (p) {
*bufp = buf = p;