From 6ee0904855a75282d478c8e85b2f6381c6b33e7c Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 3 Feb 2006 14:21:35 +0000 Subject: Improved inaddr_hashcomp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3040 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 91a75d5e3..150bf77fe 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -92,13 +92,7 @@ bool irc::StrHashComp::operator()(const std::string& s1, const std::string& s2) bool irc::InAddr_HashComp::operator()(const in_addr &s1, const in_addr &s2) const { - size_t q; - size_t p; - - memcpy(&q,&s1,sizeof(size_t)); - memcpy(&p,&s2,sizeof(size_t)); - - return (q == p); + return (s1.s_addr == s1.s_addr); } /****************************************************** -- cgit v1.2.3