diff src/event/ngx_event_accept.c @ 98:c9b243802a17

nginx-0.0.1-2003-05-30-18:27:59 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 30 May 2003 14:27:59 +0000
parents 70d2345a903f
children a059e1aa65d4
line wrap: on
line diff
--- a/src/event/ngx_event_accept.c
+++ b/src/event/ngx_event_accept.c
@@ -63,7 +63,8 @@ void ngx_event_accept(ngx_event_t *ev)
             return;
         }
 
-        if (s >= ecf->connections) {
+        /* disable warnings: Win32 SOCKET is u_int while UNIX socket is int */
+        if ((unsigned) s >= (unsigned) ecf->connections) {
 
             ngx_log_error(NGX_LOG_ALERT, ev->log, 0,
                           "accept() %s returned socket #%d while "