diff src/http/modules/ngx_http_index_handler.c @ 148:5afee0074707

nginx-0.0.1-2003-10-17-00:19:16 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 16 Oct 2003 20:19:16 +0000
parents ef8c87afcfc5
children 4db54fdbcbe7
line wrap: on
line diff
--- a/src/http/modules/ngx_http_index_handler.c
+++ b/src/http/modules/ngx_http_index_handler.c
@@ -79,7 +79,7 @@ ngx_module_t  ngx_http_index_module = {
 
 int ngx_http_index_handler(ngx_http_request_t *r)
 {
-    int                        i, rc, test_dir, path_not_found;
+    int                        rc;
     char                      *name, *file;
     ngx_str_t                  redirect, *index;
     ngx_err_t                  err;
@@ -132,7 +132,7 @@ int ngx_http_index_handler(ngx_http_requ
 
         fd = ngx_open_file(name, NGX_FILE_RDONLY, NGX_FILE_OPEN);
 
-        if (fd == NGX_AGAIN) {
+        if (fd == (ngx_fd_t) NGX_AGAIN) {
             return NGX_AGAIN;
         }