From: Aaron Bannert Date: Thu, 24 Jan 2002 04:31:01 +0000 (+0000) Subject: Bring apache in line with the new apr_file_dup2() parameter type. X-Git-Tag: 2.0.31~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9c71f11abb030753d1fce79e5fb482b13f7f107;p=apache 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 --- 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); } }