Mercurial > hg > nginx
diff src/core/ngx_conf_file.c @ 43:53cd05892261
nginx-0.0.1-2002-12-27-19:22:50 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 27 Dec 2002 16:22:50 +0000 |
parents | src/core/ngx_config_file.c@59e7c7f30d49 |
children | 0e81ac0bb3e2 |
line wrap: on
line diff
copy from src/core/ngx_config_file.c copy to src/core/ngx_conf_file.c --- a/src/core/ngx_config_file.c +++ b/src/core/ngx_conf_file.c @@ -1,7 +1,7 @@ #include <ngx_config.h> #include <ngx_core.h> -#include <ngx_config_file.h> +#include <ngx_conf_file.h> static int argument_number[] = { @@ -75,7 +75,9 @@ int ngx_conf_parse(ngx_conf_t *cf, ngx_s name = (ngx_str_t *) cf->args->elts; for (i = 0; ngx_modules[i]; i++) { - if (cf->type != ngx_modules[i]->type) { + if (ngx_modules[i]->type != NULL + && ngx_modules[i]->type != cf->type) + { continue; } @@ -88,7 +90,9 @@ int ngx_conf_parse(ngx_conf_t *cf, ngx_s if (name->len == cmd->name.len && ngx_strcmp(name->data, cmd->name.data) == 0) { + ngx_log_debug(cf->log, "command '%s'" _ cmd->name.data); + cmd->set(cf, cmd, NULL); }