Source-Changes-HG archive

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

[src/trunk]: src/libexec/httpd use %zu instead of %lu for size_t.



details:   https://anonhg.NetBSD.org/src/rev/9041dfa38937
branches:  trunk
changeset: 344754:9041dfa38937
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Apr 15 20:00:13 2016 +0000

description:
use %zu instead of %lu for size_t.

diffstat:

 libexec/httpd/cgi-bozo.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 83588d660666 -r 9041dfa38937 libexec/httpd/cgi-bozo.c
--- a/libexec/httpd/cgi-bozo.c  Fri Apr 15 17:57:21 2016 +0000
+++ b/libexec/httpd/cgi-bozo.c  Fri Apr 15 20:00:13 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgi-bozo.c,v 1.33 2016/04/15 17:57:21 mrg Exp $        */
+/*     $NetBSD: cgi-bozo.c,v 1.34 2016/04/15 20:00:13 mrg Exp $        */
 
 /*     $eterna: cgi-bozo.c,v 1.40 2011/11/18 09:21:15 mrg Exp $        */
 
@@ -448,11 +448,11 @@
                    &search_string_argc);
        }
 
-       debug((httpd, DEBUG_NORMAL, "parse_search_string args no: %lu",
+       debug((httpd, DEBUG_NORMAL, "parse_search_string args no: %zu",
            search_string_argc));
        for (i = 0; i < search_string_argc; i++) {
                debug((httpd, DEBUG_FAT,
-                   "search_string[%lu]: `%s'", i, search_string_argv[i]));
+                   "search_string[%zu]: `%s'", i, search_string_argv[i]));
        }
 
        argv = bozomalloc(httpd, sizeof(*argv) * (3 + search_string_argc));
@@ -578,7 +578,7 @@
            path));
 
        for (i = 0; argv[i] != NULL; i++) {
-               debug((httpd, DEBUG_FAT, "bozo_process_cgi: argv[%lu] = `%s'",
+               debug((httpd, DEBUG_FAT, "bozo_process_cgi: argv[%zu] = `%s'",
                    i, argv[i]));
        }
 



Home | Main Index | Thread Index | Old Index