httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1023026 - /httpd/httpd/trunk/include/http_log.h
Date Fri, 15 Oct 2010 17:17:16 GMT
Author: rjung
Date: Fri Oct 15 17:17:15 2010
New Revision: 1023026

URL: http://svn.apache.org/viewvc?rev=1023026&view=rev
Log:
Fix constness in log macro.
Prevent compiler warning.

Modified:
    httpd/httpd/trunk/include/http_log.h

Modified: httpd/httpd/trunk/include/http_log.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/http_log.h?rev=1023026&r1=1023025&r2=1023026&view=diff
==============================================================================
--- httpd/httpd/trunk/include/http_log.h (original)
+++ httpd/httpd/trunk/include/http_log.h Fri Oct 15 17:17:15 2010
@@ -337,7 +337,7 @@ AP_DECLARE(void) ap_log_error(const char
 #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



Mime
View raw message