Source-Changes-HG archive

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

[src/trunk]: src/libexec/httpd avoid c99ism.



details:   https://anonhg.NetBSD.org/src/rev/ce9f70e49844
branches:  trunk
changeset: 994865:ce9f70e49844
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Nov 24 18:38:59 2018 +0000

description:
avoid c99ism.

diffstat:

 libexec/httpd/bozohttpd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 61e6366a570e -r ce9f70e49844 libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Sat Nov 24 18:37:50 2018 +0000
+++ b/libexec/httpd/bozohttpd.c Sat Nov 24 18:38:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bozohttpd.c,v 1.97 2018/11/24 13:08:10 christos Exp $  */
+/*     $NetBSD: bozohttpd.c,v 1.98 2018/11/24 18:38:59 mrg Exp $       */
 
 /*     $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $      */
 
@@ -1924,8 +1924,9 @@
 bozo_check_special_files(bozo_httpreq_t *request, const char *name)
 {
        bozohttpd_t *httpd = request->hr_httpd;
+       size_t i;
 
-       for (size_t i = 0; specials[i].file; i++)
+       for (i = 0; specials[i].file; i++)
                if (strcmp(name, specials[i].file) == 0)
                        return bozo_http_error(httpd, 403, request,
                                               specials[i].name);



Home | Main Index | Thread Index | Old Index