Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Use %zu rather than cast



details:   https://anonhg.NetBSD.org/src/rev/a403069d6a88
branches:  trunk
changeset: 765936:a403069d6a88
user:      sjg <sjg%NetBSD.org@localhost>
date:      Sat Jun 11 02:10:48 2011 +0000

description:
Use %zu rather than cast

diffstat:

 usr.bin/make/meta.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 2b593a33413a -r a403069d6a88 usr.bin/make/meta.c
--- a/usr.bin/make/meta.c       Sat Jun 11 01:07:33 2011 +0000
+++ b/usr.bin/make/meta.c       Sat Jun 11 02:10:48 2011 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index