]> granicus.if.org Git - apache/commitdiff
For a local variable in a macro, use a name that is less likely to clash
authorStefan Fritsch <sf@apache.org>
Wed, 18 Apr 2012 21:27:36 +0000 (21:27 +0000)
committerStefan Fritsch <sf@apache.org>
Wed, 18 Apr 2012 21:27:36 +0000 (21:27 +0000)
with other variable names.

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

include/http_log.h

index 922500f1e16c9c7f01044aacab9e681c13baef6e..77991fca7fcb4ebe21ec4dce372ae7c78274d3a0 100644 (file)
@@ -363,8 +363,8 @@ 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 { const server_rec *sr = s; if (APLOG_MODULE_IS_LEVEL(sr, mi, level))      \
-             ap_log_error_(file, line, mi, level, status, sr, __VA_ARGS__); \
+    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
 #define ap_log_error ap_log_error_