From e16187701296bdc7f1acc9397b14cf015fdefbde Mon Sep 17 00:00:00 2001 From: eban Date: Fri, 30 Aug 2002 14:34:57 +0000 Subject: [PATCH] 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 --- ext/socket/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 2e9731dbc4..a89e8f9104 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -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