summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hashcomp.cpp8
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);
}
/******************************************************