Source-Changes-HG archive

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

[src/netbsd-7-0]: src Pull up following revision(s) (requested by mrg in tick...



details:   https://anonhg.NetBSD.org/src/rev/217071a70835
branches:  netbsd-7-0
changeset: 801174:217071a70835
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Apr 15 20:24:04 2016 +0000

description:
Pull up following revision(s) (requested by mrg in ticket #1141):
libexec/httpd/cgi-bozo.c                        1.34

        use %zu instead of %lu for size_t.

(ok snj@)

diffstat:

 doc/CHANGES-7.0.1        |  6 +++++-
 libexec/httpd/cgi-bozo.c |  8 ++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

diffs (49 lines):

diff -r 7f2b8e582412 -r 217071a70835 doc/CHANGES-7.0.1
--- a/doc/CHANGES-7.0.1 Fri Apr 15 19:00:14 2016 +0000
+++ b/doc/CHANGES-7.0.1 Fri Apr 15 20:24:04 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.0.1,v 1.1.2.49 2016/04/15 19:00:14 snj Exp $
+# $NetBSD: CHANGES-7.0.1,v 1.1.2.50 2016/04/15 20:24:04 mrg Exp $
 
 A complete list of changes from the NetBSD 7.0 release to the NetBSD 7.0.1
 release:
@@ -2310,3 +2310,7 @@
        o -C option supports now CGI scripts only
        [mrg, ticket #1141]
 
+libexec/httpd/cgi-bozo.c                        1.34
+
+       Fix the build: use %zu instead of %lu for size_t.
+       [mrg, ticket #1141]
diff -r 7f2b8e582412 -r 217071a70835 libexec/httpd/cgi-bozo.c
--- a/libexec/httpd/cgi-bozo.c  Fri Apr 15 19:00:14 2016 +0000
+++ b/libexec/httpd/cgi-bozo.c  Fri Apr 15 20:24:04 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgi-bozo.c,v 1.25.2.2.2.1 2016/04/15 18:55:49 snj Exp $        */
+/*     $NetBSD: cgi-bozo.c,v 1.25.2.2.2.2 2016/04/15 20:24:04 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