mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/socket/socket.c (sock_s_getaddrinfo): add strcmp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fb00e309f6
commit
e161877012
1 changed files with 1 additions and 1 deletions
|
@ -2291,7 +2291,7 @@ sock_s_getnameinfo(argc, argv)
|
|||
hints.ai_family = PF_INET;
|
||||
}
|
||||
#ifdef INET6
|
||||
else if (ap, "AF_INET6") == 0) {
|
||||
else if (strcmp(ap, "AF_INET6") == 0) {
|
||||
hints.ai_family = PF_INET6;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue