]> granicus.if.org Git - apache/commitdiff
Fix constness in log macro.
authorRainer Jung <rjung@apache.org>
Fri, 15 Oct 2010 17:17:15 +0000 (17:17 +0000)
committerRainer Jung <rjung@apache.org>
Fri, 15 Oct 2010 17:17:15 +0000 (17:17 +0000)
Prevent compiler warning.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1023026 13f79535-47bb-0310-9956-ffa450edef68

include/http_log.h

index 724f8e132f640a79ebfbee35bdf4499ecf9fe662..b6229980991eb534dcab07330628d75a17393471 100644 (file)
@@ -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