diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-03-16 07:10:12 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-03-16 07:10:12 +0000 |
| commit | 10a543a810ac78eb5d754302b001debf9cd420c4 (patch) | |
| tree | a4a4f43835bed4549007b82db516d460fc86c555 /src/event/ngx_event.c | |
| parent | 5596ede94ed311bb9d16ee11f6f68c97eb46d836 (diff) | |
| download | nginx-10a543a810ac78eb5d754302b001debf9cd420c4.tar.gz nginx-10a543a810ac78eb5d754302b001debf9cd420c4.tar.bz2 | |
nginx-0.0.2-2004-03-16-10:10:12 import
Diffstat (limited to 'src/event/ngx_event.c')
| -rw-r--r-- | src/event/ngx_event.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/event/ngx_event.c b/src/event/ngx_event.c index 03be86a55..e46824ef0 100644 --- a/src/event/ngx_event.c +++ b/src/event/ngx_event.c @@ -126,7 +126,8 @@ ngx_module_t ngx_event_core_module = { static int ngx_event_init(ngx_cycle_t *cycle) { - int m, i, fd; + ngx_uint_t m, i; + ngx_socket_t fd; ngx_event_t *rev, *wev; ngx_listening_t *s; ngx_connection_t *c; @@ -174,7 +175,7 @@ static int ngx_event_init(ngx_cycle_t *cycle) c = cycle->connections; for (i = 0; i < cycle->connection_n; i++) { - c[i].fd = -1; + c[i].fd = (ngx_socket_t) -1; } cycle->read_events = ngx_alloc(sizeof(ngx_event_t) * ecf->connections, @@ -250,7 +251,7 @@ static int ngx_event_init(ngx_cycle_t *cycle) return NGX_ERROR; } - cycle->old_cycle->connections[fd].fd = -1; + cycle->old_cycle->connections[fd].fd = (ngx_socket_t) -1; } } |
