Module Name: src Committed By: mrg Date: Sat Nov 24 18:38:59 UTC 2018
Modified Files: src/libexec/httpd: bozohttpd.c Log Message: avoid c99ism. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/libexec/httpd/bozohttpd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/libexec/httpd/bozohttpd.c diff -u src/libexec/httpd/bozohttpd.c:1.97 src/libexec/httpd/bozohttpd.c:1.98 --- src/libexec/httpd/bozohttpd.c:1.97 Sat Nov 24 13:08:10 2018 +++ src/libexec/httpd/bozohttpd.c Sat Nov 24 18:38:59 2018 @@ -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 @@ int 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);