From b340c25164f75c168c241ed136dc0fbe7e72dfdb Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 11 Jan 2012 01:23:24 +0900 Subject: [PATCH] Code cleanup --- src/SocketCore.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SocketCore.cc b/src/SocketCore.cc index 59aa2f58..5a8109eb 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -1143,8 +1143,7 @@ void getInterfaceAddress } else { continue; } - if(util::streq(iface.begin(), iface.end(), - ifa->ifa_name, ifa->ifa_name+strlen(ifa->ifa_name))) { + if(strcmp(iface.c_str(), ifa->ifa_name) == 0) { socklen_t bindAddrLen = iffamily == AF_INET ? sizeof(sockaddr_in) : sizeof(sockaddr_in6); sockaddr_union bindAddr;