1
0
Fork 0
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:
eban 2002-08-30 14:34:57 +00:00
parent fb00e309f6
commit e161877012

View file

@ -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