You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rj...@apache.org on 2010/10/15 19:17:16 UTC
svn commit: r1023026 - /httpd/httpd/trunk/include/http_log.h
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