]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Get rid of ap_pool_t argument on ap_strerror
authorBill Stoddard <stoddard@apache.org>
Wed, 26 Apr 2000 02:36:38 +0000 (02:36 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 26 Apr 2000 02:36:38 +0000 (02:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85044 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index 1f540ed0d455a1ab2ae228f9fd34c71631750519..c8319968d306e4e42056f5b553cc05120d85246b 100644 (file)
@@ -411,18 +411,9 @@ static void log_error_core(const char *file, int line, int level,
     }
     if (!(level & APLOG_NOERRNO)
        && (status != 0)) {
-        ap_pool_t *p;
-        if (r) {
-            p = r->pool;
-        }
-        else if (s) {
-            p = s->process->pool;
-        }
-        else {
-            p = pool;
-        }
+        char buf[100];
        len += ap_snprintf(errstr + len, MAX_STRING_LEN - len,
-               "(%d)%s: ", status, ap_strerror(status, p));
+               "(%d)%s: ", status, ap_strerror(status, buf, sizeof(buf)));
     }
 
     len += ap_vsnprintf(errstr + len, MAX_STRING_LEN - len, fmt, args);