diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-16 21:49:42 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-16 21:49:42 +0000 |
commit | f2e676aa1585de170b39cf3e9d71b88db47e4b1b (patch) | |
tree | 3553b3481de51b2321b201ae34024f178af894c1 /src/core/ngx_conf_file.c | |
parent | 297c0487518d4b974a548dfd3d5d2f10c250177c (diff) | |
download | nginx-f2e676aa1585de170b39cf3e9d71b88db47e4b1b.tar.gz nginx-f2e676aa1585de170b39cf3e9d71b88db47e4b1b.zip |
nginx-0.0.1-2003-11-17-00:49:42 import
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r-- | src/core/ngx_conf_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index 6fd4f8698..5ea364bce 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -55,9 +55,9 @@ char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename) ngx_palloc(cf->pool, sizeof(ngx_conf_file_t)), NGX_CONF_ERROR); - if (ngx_stat_fd(fd, &cf->conf_file->file.info) == -1) { + if (ngx_fd_info(fd, &cf->conf_file->file.info) == -1) { ngx_log_error(NGX_LOG_EMERG, cf->log, ngx_errno, - ngx_stat_fd_n " %s failed", filename->data); + ngx_fd_info_n " %s failed", filename->data); } ngx_test_null(cf->conf_file->hunk, @@ -310,7 +310,7 @@ ngx_log_debug(cf->log, "TOKEN START"); if (h->pos >= h->last) { if (cf->conf_file->file.offset - >= ngx_file_size((&cf->conf_file->file.info))) { + >= ngx_file_size(&cf->conf_file->file.info)) { return NGX_CONF_FILE_DONE; } |