From 147ef0da318c4e36f253b76d6da5e8965844ab93 Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Fri, 15 Oct 2010 17:17:15 +0000 Subject: [PATCH] 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 --- include/http_log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0