diff src/event/ngx_event_accept.c @ 290:87e73f067470

nginx-0.0.2-2004-03-16-10:10:12 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Mar 2004 07:10:12 +0000
parents 5238e93961a1
children 744965ec6275
line wrap: on
line diff
--- a/src/event/ngx_event_accept.c
+++ b/src/event/ngx_event_accept.c
@@ -6,8 +6,8 @@
 
 
 typedef struct {
-    int    flag;
-    char  *name;
+    int      flag;
+    u_char  *name;
 } ngx_accept_log_ctx_t;
 
 
@@ -16,7 +16,7 @@ static size_t ngx_accept_log_error(void 
 
 void ngx_event_accept(ngx_event_t *ev)
 {
-    int                    instance, accepted;
+    ngx_uint_t             instance, accepted;
     socklen_t              len;
     struct sockaddr       *sa;
     ngx_err_t              err;
@@ -216,8 +216,8 @@ void ngx_event_accept(ngx_event_t *ev)
         c->sockaddr = sa;
         c->socklen = len;
 
-        rev->instance = !instance;
-        wev->instance = !instance;
+        rev->instance = (u_char) !instance;
+        wev->instance = (u_char) !instance;
 
         rev->index = NGX_INVALID_INDEX;
         wev->index = NGX_INVALID_INDEX;