]> granicus.if.org Git - apache/commitdiff
Bring apache in line with the new apr_file_dup2() parameter type.
authorAaron Bannert <aaron@apache.org>
Thu, 24 Jan 2002 04:31:01 +0000 (04:31 +0000)
committerAaron Bannert <aaron@apache.org>
Thu, 24 Jan 2002 04:31:01 +0000 (04:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92992 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index d74cb95ae02ac6ac213d102f6573a30c768f354f..c23c6677ed4696a3da06bbf60edf2b2b0f84f259 100644 (file)
@@ -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);
     }
 }