summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_conf_file.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-02-24 10:42:23 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-02-24 10:42:23 +0000
commit1f4220ee869152938d9140c471c37be628532344 (patch)
treebb17b08acf1f50770fec0846cd6202a593b93674 /src/core/ngx_conf_file.c
parent9b4a1d00941db4b85fc2ffe7424b706b56f7133f (diff)
downloadnginx-1f4220ee869152938d9140c471c37be628532344.tar.gz
nginx-1f4220ee869152938d9140c471c37be628532344.tar.bz2
small optimization: " == NGX_ERROR" > " != NGX_OK"
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r--src/core/ngx_conf_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c
index 68a89cc31..7ec574e0c 100644
--- a/src/core/ngx_conf_file.c
+++ b/src/core/ngx_conf_file.c
@@ -741,7 +741,7 @@ ngx_conf_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
- if (ngx_conf_full_name(cf->cycle, &file, 1) == NGX_ERROR) {
+ if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
return NGX_CONF_ERROR;
}
@@ -854,7 +854,7 @@ ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
if (name) {
full = *name;
- if (ngx_conf_full_name(cycle, &full, 0) == NGX_ERROR) {
+ if (ngx_conf_full_name(cycle, &full, 0) != NGX_OK) {
return NULL;
}