diff src/http/ngx_http_log_handler.c @ 393:5659d773cfa8

nginx-0.0.7-2004-07-15-20:35:51 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 15 Jul 2004 16:35:51 +0000
parents 2e3cbc1bbe3c
children 8ac40cae79f0
line wrap: on
line diff
--- a/src/http/ngx_http_log_handler.c
+++ b/src/http/ngx_http_log_handler.c
@@ -656,7 +656,7 @@ static char *ngx_http_log_merge_loc_conf
                 return NGX_CONF_ERROR;
             }
 
-            lmcf = ngx_http_conf_module_main_conf(cf, ngx_http_log_module);
+            lmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_log_module);
             fmt = lmcf->formats.elts;
             /* the default "combined" format */
             log->ops = fmt[0].ops;
@@ -686,7 +686,7 @@ static char *ngx_http_log_set_log(ngx_co
     }
 
     value = cf->args->elts;
-    lmcf = ngx_http_conf_module_main_conf(cf, ngx_http_log_module);
+    lmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_log_module);
 
     if (!(log = ngx_push_array(llcf->logs))) {
         return NGX_CONF_ERROR;