From: Rainer Jung Date: Fri, 15 Oct 2010 17:17:15 +0000 (+0000) Subject: Fix constness in log macro. X-Git-Tag: 2.3.9~316 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=147ef0da318c4e36f253b76d6da5e8965844ab93;p=thirdparty%2Fapache%2Fhttpd.git Fix constness in log macro. Prevent compiler warning. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1023026 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_log.h b/include/http_log.h index 724f8e132f6..b6229980991 100644 --- a/include/http_log.h +++ b/include/http_log.h @@ -337,7 +337,7 @@ AP_DECLARE(void) ap_log_error(const char *file, int line, int module_index, #define ap_log_error(...) ap_log_error__(__VA_ARGS__) /* need server_rec *sr = ... for the case if s is verbatim NULL */ #define ap_log_error__(file, line, mi, level, status, s, ...) \ - do { server_rec *sr = s; if (APLOG_MODULE_IS_LEVEL(sr, mi, level)) \ + do { const server_rec *sr = s; if (APLOG_MODULE_IS_LEVEL(sr, mi, level)) \ ap_log_error_(file, line, mi, level, status, sr, __VA_ARGS__); \ } while(0) #else