fix trivial compile breakage

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-11-24 14:06:04 +01:00
parent 363e89b1ee
commit 75b7397675

View File

@ -223,7 +223,7 @@ IF_NOT_FEATURE_IPV6(sa_family_t af = AF_INET;)
} }
/* Next two if blocks allow to skip getaddrinfo() /* Next two if blocks allow to skip getaddrinfo()
* in case host is a numeric IP(v6) address, * in case host name is a numeric IP(v6) address.
* getaddrinfo() initializes DNS resolution machinery, * getaddrinfo() initializes DNS resolution machinery,
* scans network config and such - tens of syscalls. * scans network config and such - tens of syscalls.
*/ */
@ -283,7 +283,7 @@ IF_NOT_FEATURE_IPV6(sa_family_t af = AF_INET;)
r->len = used_res->ai_addrlen; r->len = used_res->ai_addrlen;
memcpy(&r->u.sa, used_res->ai_addr, used_res->ai_addrlen); memcpy(&r->u.sa, used_res->ai_addr, used_res->ai_addrlen);
IF_FEATURE_IPV6(set_port:) set_port:
set_nport(r, htons(port)); set_nport(r, htons(port));
ret: ret:
freeaddrinfo(result); freeaddrinfo(result);