comparison src/core/ngx_connection.c @ 2801:bceaaf5b055e

use local variable
author Igor Sysoev <igor@sysoev.ru>
date Tue, 05 May 2009 13:05:42 +0000
parents 8b54548fef6e
children 44b2081c015a
comparison
equal deleted inserted replaced
2800:f75cd920eaa5 2801:bceaaf5b055e
247 247
248 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, 248 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
249 (const void *) &ipv6only, sizeof(int)) 249 (const void *) &ipv6only, sizeof(int))
250 == -1) 250 == -1)
251 { 251 {
252 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_socket_errno, 252 ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno,
253 "setsockopt(IPV6_V6ONLY) %V failed, ignored", 253 "setsockopt(IPV6_V6ONLY) %V failed, ignored",
254 &ls[i].addr_text); 254 &ls[i].addr_text);
255 } 255 }
256 } 256 }
257 #endif 257 #endif
271 271
272 return NGX_ERROR; 272 return NGX_ERROR;
273 } 273 }
274 } 274 }
275 275
276 ngx_log_debug2(NGX_LOG_DEBUG_CORE, cycle->log, 0, 276 ngx_log_debug2(NGX_LOG_DEBUG_CORE, log, 0,
277 "bind() %V #%d ", &ls[i].addr_text, s); 277 "bind() %V #%d ", &ls[i].addr_text, s);
278 278
279 if (bind(s, ls[i].sockaddr, ls[i].socklen) == -1) { 279 if (bind(s, ls[i].sockaddr, ls[i].socklen) == -1) {
280 err = ngx_socket_errno; 280 err = ngx_socket_errno;
281 281