comparison src/event/ngx_event_accept.c @ 5359:2fda9065d0f4

Win32: Borland C compatibility fixes. Several false positive warnings silenced, notably W8012 "Comparing signed and unsigned" (due to u_short values promoted to int), and W8072 "Suspicious pointer arithmetic" (due to large type values added to pointers). With this patch, it's now again possible to compile nginx using bcc32, with options we normally compile on win32 minus ipv6 and ssl.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 04 Sep 2013 20:48:23 +0400
parents 05ba5bce31e0
children 3d2d3e1cf427
comparison
equal deleted inserted replaced
5358:670ceaba03d8 5359:2fda9065d0f4
295 ngx_uint_t n; 295 ngx_uint_t n;
296 #endif 296 #endif
297 297
298 cidr = ecf->debug_connection.elts; 298 cidr = ecf->debug_connection.elts;
299 for (i = 0; i < ecf->debug_connection.nelts; i++) { 299 for (i = 0; i < ecf->debug_connection.nelts; i++) {
300 if (cidr[i].family != c->sockaddr->sa_family) { 300 if (cidr[i].family != (ngx_uint_t) c->sockaddr->sa_family) {
301 goto next; 301 goto next;
302 } 302 }
303 303
304 switch (cidr[i].family) { 304 switch (cidr[i].family) {
305 305