mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/socket/ipsocket.c: prevent "warning: unused variable 'resolv_timeout'"
This commit is contained in:
parent
70d7e4c3f0
commit
950614b088
1 changed files with 1 additions and 2 deletions
|
@ -50,13 +50,12 @@ init_inetsock_internal(VALUE v)
|
||||||
int fd, status = 0, local = 0;
|
int fd, status = 0, local = 0;
|
||||||
int family = AF_UNSPEC;
|
int family = AF_UNSPEC;
|
||||||
const char *syscall = 0;
|
const char *syscall = 0;
|
||||||
VALUE resolv_timeout = arg->resolv_timeout;
|
|
||||||
|
|
||||||
#ifdef HAVE_GETADDRINFO_A
|
#ifdef HAVE_GETADDRINFO_A
|
||||||
arg->remote.res = rsock_addrinfo_a(arg->remote.host, arg->remote.serv,
|
arg->remote.res = rsock_addrinfo_a(arg->remote.host, arg->remote.serv,
|
||||||
family, SOCK_STREAM,
|
family, SOCK_STREAM,
|
||||||
(type == INET_SERVER) ? AI_PASSIVE : 0,
|
(type == INET_SERVER) ? AI_PASSIVE : 0,
|
||||||
resolv_timeout);
|
arg->resolv_timeout);
|
||||||
#else
|
#else
|
||||||
arg->remote.res = rsock_addrinfo(arg->remote.host, arg->remote.serv,
|
arg->remote.res = rsock_addrinfo(arg->remote.host, arg->remote.serv,
|
||||||
family, SOCK_STREAM,
|
family, SOCK_STREAM,
|
||||||
|
|
Loading…
Reference in a new issue