diff options
| author | 2006-08-01 10:37:16 +0000 | |
|---|---|---|
| committer | 2006-08-01 10:37:16 +0000 | |
| commit | c80508b28be5947648f59710e6653f793a73bd76 (patch) | |
| tree | 87c3c9509ba2ae20312604d13ee14abcbea8b948 /src/hashcomp.cpp | |
| parent | Missing include breaks "make clean" on the cmd_* files (diff) | |
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
Diffstat (limited to 'src/hashcomp.cpp')
| -rw-r--r-- | src/hashcomp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<in_addr>::operator()(const struct in_addr &a) const +size_t nspace::hash<insp_inaddr>::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); } |
