From f9c71f11abb030753d1fce79e5fb482b13f7f107 Mon Sep 17 00:00:00 2001 From: Aaron Bannert Date: Thu, 24 Jan 2002 04:31:01 +0000 Subject: [PATCH] Bring apache in line with the new apr_file_dup2() parameter type. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92992 13f79535-47bb-0310-9956-ffa450edef68 --- server/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/log.c b/server/log.c index d74cb95ae0..c23c6677ed 100644 --- a/server/log.c +++ b/server/log.c @@ -295,7 +295,7 @@ void ap_open_logs(server_rec *s_main, apr_pool_t *p) /* replace stderr with this new log */ apr_file_flush(s_main->error_log); apr_file_open_stderr(&errfile, p); - rc = apr_file_dup2(&errfile, s_main->error_log, p); + rc = apr_file_dup2(errfile, s_main->error_log, p); if (rc != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, rc, s_main, "unable to replace stderr with error_log"); @@ -338,7 +338,7 @@ AP_DECLARE(void) ap_error_log2stderr(server_rec *s) { apr_file_open_stderr(&errfile, s->process->pool); if (s->error_log != NULL) { - apr_file_dup2(&(s->error_log), errfile, s->process->pool); + apr_file_dup2(s->error_log, errfile, s->process->pool); } } -- 2.40.0