From c80508b28be5947648f59710e6653f793a73bd76 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 1 Aug 2006 10:37:16 +0000 Subject: Move to entirely using insp_sockaddr and insp_inaddr for socket stuff, first step on the road to ipv6 support git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4609 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hashcomp.cpp') diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 34f53ea28..213d51ffb 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -52,14 +52,14 @@ extern const char lowermap[255]; * be considered the lowercase of {, } and |. * * This file also contains hashing methods for hashing - * in_addr structs, we use this if we want to cache IP + * insp_inaddr structs, we use this if we want to cache IP * addresses. * ******************************************************/ using namespace std; -size_t nspace::hash::operator()(const struct in_addr &a) const +size_t nspace::hash::operator()(const insp_inaddr &a) const { size_t q; memcpy(&q,&a,sizeof(size_t)); @@ -85,7 +85,7 @@ bool irc::StrHashComp::operator()(const std::string& s1, const std::string& s2) return (lowermap[*n1] == lowermap[*n2]); } -bool irc::InAddr_HashComp::operator()(const in_addr &s1, const in_addr &s2) const +bool irc::InAddr_HashComp::operator()(const insp_inaddr &s1, const insp_inaddr &s2) const { return (s1.s_addr == s1.s_addr); } -- cgit v1.3.1-10-gc9f91