mirror of
https://github.com/python/cpython.git
synced 2025-12-07 17:57:56 +00:00
Fix typo. Thanks to Jack Jansen for spotting it.
This commit is contained in:
parent
eb9b103296
commit
b8fc972100
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue