diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-03 14:21:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-03 14:21:35 +0000 |
commit | 6ee0904855a75282d478c8e85b2f6381c6b33e7c (patch) | |
tree | 54315a780e77dddf7e6fb72b8abd82dee38c47b4 | |
parent | 36bfb8b756061193c6dd72b9cb52db48bb5f6aad (diff) |
Improved inaddr_hashcomp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3040 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/hashcomp.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
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); } /****************************************************** |