Module Name: src Committed By: mrg Date: Tue Nov 20 01:23:06 UTC 2018
Modified Files: src/libexec/httpd: bozohttpd.h Log Message: also fix have_dynamic_content from the previous previous. re-order the debug and dynamic content to match the same pattern as everything else so similar problems are less likely in the future. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/libexec/httpd/bozohttpd.h 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.h diff -u src/libexec/httpd/bozohttpd.h:1.53 src/libexec/httpd/bozohttpd.h:1.54 --- src/libexec/httpd/bozohttpd.h:1.53 Tue Nov 20 01:19:51 2018 +++ src/libexec/httpd/bozohttpd.h Tue Nov 20 01:23:06 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: bozohttpd.h,v 1.53 2018/11/20 01:19:51 mrg Exp $ */ +/* $NetBSD: bozohttpd.h,v 1.54 2018/11/20 01:23:06 mrg Exp $ */ /* $eterna: bozohttpd.h,v 1.39 2011/11/18 09:21:15 mrg Exp $ */ @@ -222,13 +222,13 @@ typedef struct bozoprefs_t { #define BOZO_DEAD #endif -#ifndef NO_DEBUG +#ifdef NO_DEBUG +#define debug(x) +#define have_debug (0) +#else void debug__(bozohttpd_t *, int, const char *, ...) BOZO_PRINTFLIKE(3, 4); #define debug(x) debug__ x #define have_debug (1) -#else -#define debug(x) -#define have_debug (0) #endif /* NO_DEBUG */ int bozo_http_error(bozohttpd_t *, int, bozo_httpreq_t *, const char *); @@ -365,11 +365,11 @@ const char *bozo_content_type(bozo_httpr const char *bozo_content_encoding(bozo_httpreq_t *, const char *); bozo_content_map_t *bozo_match_content_map(bozohttpd_t *, const char *, int); bozo_content_map_t *bozo_get_content_map(bozohttpd_t *, const char *); -#ifndef NO_DYNAMIC_CONTENT -void bozo_add_content_map_mime(bozohttpd_t *, const char *, const char *, - const char *, const char *); +#ifdef NO_DYNAMIC_CONTENT #define have_dynamic_content (0) #else +void bozo_add_content_map_mime(bozohttpd_t *, const char *, const char *, + const char *, const char *); #define have_dynamic_content (1) #endif