diff options
author | Valentin Bartenev <vbart@nginx.com> | 2013-08-06 19:58:40 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2013-08-06 19:58:40 +0400 |
commit | d29d21bade3a0fbe0e2d5d7e0e5546873c2ee588 (patch) | |
tree | 26c5b0dc0e449c36f3df7a46d070a9e805c287ee /src/core/nginx.c | |
parent | 3c5bd34771be032ef14e59f934058b3dce93588b (diff) | |
download | nginx-d29d21bade3a0fbe0e2d5d7e0e5546873c2ee588.tar.gz nginx-d29d21bade3a0fbe0e2d5d7e0e5546873c2ee588.zip |
Replaced ngx_conf_full_name() with ngx_get_full_name().
The ngx_get_full_name() function takes more readable arguments list.
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r-- | src/core/nginx.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c index 4cc80826e..9cabac1e6 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -897,7 +897,9 @@ ngx_process_options(ngx_cycle_t *cycle) ngx_str_set(&cycle->conf_file, NGX_CONF_PATH); } - if (ngx_conf_full_name(cycle, &cycle->conf_file, 0) != NGX_OK) { + if (ngx_get_full_name(cycle->pool, &cycle->prefix, &cycle->conf_file) + != NGX_OK) + { return NGX_ERROR; } @@ -1013,7 +1015,7 @@ ngx_core_module_init_conf(ngx_cycle_t *cycle, void *conf) ngx_str_set(&ccf->pid, NGX_PID_PATH); } - if (ngx_conf_full_name(cycle, &ccf->pid, 0) != NGX_OK) { + if (ngx_get_full_name(cycle->pool, &cycle->prefix, &ccf->pid) != NGX_OK) { return NGX_CONF_ERROR; } @@ -1061,7 +1063,9 @@ ngx_core_module_init_conf(ngx_cycle_t *cycle, void *conf) ngx_str_set(&ccf->lock_file, NGX_LOCK_PATH); } - if (ngx_conf_full_name(cycle, &ccf->lock_file, 0) != NGX_OK) { + if (ngx_get_full_name(cycle->pool, &cycle->prefix, &ccf->lock_file) + != NGX_OK) + { return NGX_CONF_ERROR; } |