Commit b8fc9721 authored by Martin v. Löwis's avatar Martin v. Löwis

Fix typo. Thanks to Jack Jansen for spotting it.

parent eb9b1032
...@@ -622,7 +622,7 @@ setipaddr(char* name, struct sockaddr * addr_ret, int af) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment