diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-29 23:28:52 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-29 23:28:52 +0400 |
commit | ef919756d9970902117af563e7e93465f610e600 (patch) | |
tree | 3b4c29a934718617bf57606321381f9a824ef8ef /src/core/ngx_open_file_cache.c | |
parent | b1e640a3859bb7b5357afe16b0d3791916690e24 (diff) |
uniform ngx_file_info() interface with ngx_fd_info()
Diffstat (limited to 'src/core/ngx_open_file_cache.c')
-rw-r--r-- | src/core/ngx_open_file_cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index 6deb0ce0b..e0b434b13 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c @@ -143,7 +143,7 @@ ngx_open_cached_file(ngx_open_file_cache_t *cache, ngx_str_t *name, if (of->test_only) { - if (ngx_file_info(name->data, &fi) == -1) { + if (ngx_file_info(name->data, &fi) == NGX_FILE_ERROR) { of->err = ngx_errno; of->failed = ngx_file_info_n; return NGX_ERROR; @@ -463,7 +463,7 @@ ngx_open_and_stat_file(u_char *name, ngx_open_file_info_t *of, ngx_log_t *log) if (of->fd != NGX_INVALID_FILE) { - if (ngx_file_info(name, &fi) == -1) { + if (ngx_file_info(name, &fi) == NGX_FILE_ERROR) { of->failed = ngx_file_info_n; goto failed; } @@ -474,7 +474,7 @@ ngx_open_and_stat_file(u_char *name, ngx_open_file_info_t *of, ngx_log_t *log) } else if (of->test_dir) { - if (ngx_file_info(name, &fi) == -1) { + if (ngx_file_info(name, &fi) == NGX_FILE_ERROR) { of->failed = ngx_file_info_n; goto failed; } |