Commit 4a4bd8c0 authored by Bill Stoddard's avatar Bill Stoddard
Browse files

Get rid of ap_pool_t argument on ap_strerror


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85044 13f79535-47bb-0310-9956-ffa450edef68
parent c945b17b
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -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);