diff options
author | Rainer Jung <rjung@apache.org> | 2010-10-15 19:17:15 +0200 |
---|---|---|
committer | Rainer Jung <rjung@apache.org> | 2010-10-15 19:17:15 +0200 |
commit | 147ef0da318c4e36f253b76d6da5e8965844ab93 (patch) | |
tree | 64a978352108e30d7882dd6152e6000dfc4f0605 /include | |
parent | Fix description of APLOG_USE_MODULE in new (diff) | |
download | apache2-147ef0da318c4e36f253b76d6da5e8965844ab93.tar.xz apache2-147ef0da318c4e36f253b76d6da5e8965844ab93.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/http_log.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/http_log.h b/include/http_log.h index 724f8e132f..b622998099 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 |