diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-02-24 10:42:23 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-24 10:42:23 +0000 |
commit | 1f4220ee869152938d9140c471c37be628532344 (patch) | |
tree | bb17b08acf1f50770fec0846cd6202a593b93674 /src/core/nginx.c | |
parent | 9b4a1d00941db4b85fc2ffe7424b706b56f7133f (diff) | |
download | nginx-1f4220ee869152938d9140c471c37be628532344.tar.gz nginx-1f4220ee869152938d9140c471c37be628532344.zip |
small optimization: " == NGX_ERROR" > " != NGX_OK"
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r-- | src/core/nginx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c index 06721269b..e6ebae544 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -388,7 +388,7 @@ ngx_add_inherited_sockets(ngx_cycle_t *cycle) if (ngx_array_init(&cycle->listening, cycle->pool, 10, sizeof(ngx_listening_t)) - == NGX_ERROR) + != NGX_OK) { return NGX_ERROR; } @@ -838,7 +838,7 @@ ngx_core_module_init_conf(ngx_cycle_t *cycle, void *conf) ccf->pid.data = (u_char *) NGX_PID_PATH; } - if (ngx_conf_full_name(cycle, &ccf->pid, 0) == NGX_ERROR) { + if (ngx_conf_full_name(cycle, &ccf->pid, 0) != NGX_OK) { return NGX_CONF_ERROR; } @@ -858,7 +858,7 @@ ngx_core_module_init_conf(ngx_cycle_t *cycle, void *conf) ccf->lock_file.data = (u_char *) NGX_LOCK_PATH; } - if (ngx_conf_full_name(cycle, &ccf->lock_file, 0) == NGX_ERROR) { + if (ngx_conf_full_name(cycle, &ccf->lock_file, 0) != NGX_OK) { return NGX_CONF_ERROR; } |