Fix typo. Thanks to Jack Jansen for spotting it.
This commit is contained in:
parent
eb9b103296
commit
b8fc972100
@ -622,7 +622,7 @@ setipaddr(char* name, struct sockaddr * addr_ret, int af)
|
|||||||
memset(&hints, 0, sizeof(hints));
|
memset(&hints, 0, sizeof(hints));
|
||||||
hints.ai_family = af;
|
hints.ai_family = af;
|
||||||
error = getaddrinfo(name, NULL, &hints, &res);
|
error = getaddrinfo(name, NULL, &hints, &res);
|
||||||
if (error = EAI_NONAME && af == AF_UNSPEC) {
|
if (error == EAI_NONAME && af == AF_UNSPEC) {
|
||||||
/* On OSF/1 V5.1, numeric-to-addr conversion
|
/* On OSF/1 V5.1, numeric-to-addr conversion
|
||||||
fails if no address family is given. Assume IPv4 for now.*/
|
fails if no address family is given. Assume IPv4 for now.*/
|
||||||
hints.ai_family = AF_INET;
|
hints.ai_family = AF_INET;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user