From: Ruediger Pluem Date: Wed, 10 Nov 2010 12:09:27 +0000 (+0000) Subject: * Fix parameter name as new is a reserved word in C++ which makes compiling X-Git-Tag: 2.3.9~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38064564e91a34da75a9f575a6d779c0102f741e;p=thirdparty%2Fapache%2Fhttpd.git * Fix parameter name as new is a reserved word in C++ which makes compiling of http_config.h with C++ impossible. PR: 50243 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1033427 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_config.h b/include/http_config.h index a2f64706135..47a90cc546c 100644 --- a/include/http_config.h +++ b/include/http_config.h @@ -999,11 +999,11 @@ AP_DECLARE(struct ap_logconf *) ap_new_log_config(apr_pool_t *p, /** * Merge old ap_logconf into new ap_logconf. * old and new must have the same life time. - * @param old The ap_logconf to merge from - * @param new The ap_logconf to merge into + * @param old_conf The ap_logconf to merge from + * @param new_conf The ap_logconf to merge into */ -AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old, - struct ap_logconf *new); +AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old_conf, + struct ap_logconf *new_conf); /* For http_connection.c... */ /** diff --git a/server/config.c b/server/config.c index 7c01b5b2577..dbbbaca3798 100644 --- a/server/config.c +++ b/server/config.c @@ -2092,25 +2092,25 @@ AP_DECLARE(struct ap_logconf *) ap_new_log_config(apr_pool_t *p, return l; } -AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old, - struct ap_logconf *new) +AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old_conf, + struct ap_logconf *new_conf) { - if (new->level != APLOG_UNSET) { + if (new_conf->level != APLOG_UNSET) { /* Setting the main loglevel resets all per-module log levels. * I.e. if new->level has been set, we must ignore old->module_levels. */ return; } - new->level = old->level; - if (new->module_levels == NULL) { - new->module_levels = old->module_levels; + new_conf->level = old_conf->level; + if (new_conf->module_levels == NULL) { + new_conf->module_levels = old_conf->module_levels; } - else if (old->module_levels != NULL) { + else if (old_conf->module_levels != NULL) { int i; for (i = 0; i < conf_vector_length; i++) { - if (new->module_levels[i] == APLOG_UNSET) - new->module_levels[i] = old->module_levels[i]; + if (new_conf->module_levels[i] == APLOG_UNSET) + new_conf->module_levels[i] = old_conf->module_levels[i]; } } }