summaryrefslogtreecommitdiffstats
path: root/server/log.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2015-11-24 15:38:54 +0100
committerYann Ylavic <ylavic@apache.org>2015-11-24 15:38:54 +0100
commit6f8a850766b1c84c5fd37b606ac3263448e70b0f (patch)
tree3f4e3e699df0c48e2fa9db5279b23232f8713b33 /server/log.c
parentstart of PUSH priority handling, fixing core when task produces no response a... (diff)
downloadapache2-6f8a850766b1c84c5fd37b606ac3263448e70b0f.tar.xz
apache2-6f8a850766b1c84c5fd37b606ac3263448e70b0f.zip
Follow up to r1715880: revert abusive ap_casecmpstr[n]() usages.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1716151 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--server/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/log.c b/server/log.c
index c545bfc2f9..11b8237273 100644
--- a/server/log.c
+++ b/server/log.c
@@ -596,7 +596,7 @@ static int log_log_id(const ap_errorlog_info *info, const char *arg,
* c: log conn log id if available and not a once-per-request log line
* else: log request log id if available
*/
- if (arg && !ap_casecmpstr(arg, "c")) {
+ if (arg && (*arg == 'c' || *arg == 'C')) {
if (info->c && (*arg != 'C' || !info->r)) {
return cpystrn(buf, info->c->log_id, buflen);
}
@@ -1864,7 +1864,7 @@ AP_DECLARE(const char *) ap_parse_log_level(const char *str, int *val)
return err;
while (priorities[i].t_name != NULL) {
- if (!ap_casecmpstr(str, priorities[i].t_name)) {
+ if (!strcasecmp(str, priorities[i].t_name)) {
*val = priorities[i].t_val;
return NULL;
}