diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.cpp | 8 | ||||
-rw-r--r-- | src/dnsqueue.cpp | 8 | ||||
-rw-r--r-- | src/hashcomp.cpp | 4 | ||||
-rw-r--r-- | src/helperfuncs.cpp | 4 | ||||
-rw-r--r-- | src/inspircd.cpp | 8 | ||||
-rw-r--r-- | src/modules.cpp | 8 | ||||
-rw-r--r-- | src/xline.cpp | 8 |
7 files changed, 24 insertions, 24 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 3dfa44d9f..23d285eee 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -124,10 +124,10 @@ const long duration_d = duration_h * 24; const long duration_w = duration_d * 7; const long duration_y = duration_w * 52; -typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; -typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; -typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; -typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, StrHashComp> whowas_hash; +typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; +typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; +typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash; typedef std::deque<command_t> command_table; diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 9d77543e9..1a5113618 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -72,10 +72,10 @@ extern std::vector<int> fd_reap; extern int MODCOUNT; -typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; -typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; -typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; -typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, StrHashComp> whowas_hash; +typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; +typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; +typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash; typedef std::deque<command_t> command_table; extern user_hash clientlist; diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index a076dc46b..ca7394baa 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -80,7 +80,7 @@ size_t nspace::hash<string>::operator()(const string &s) const return strhash(a); } -bool StrHashComp::operator()(const string& s1, const string& s2) const +bool irc::StrHashComp::operator()(const std::string& s1, const std::string& s2) const { char a[MAXBUF],b[MAXBUF]; strlcpy(a,s1.c_str(),MAXBUF); @@ -90,7 +90,7 @@ bool StrHashComp::operator()(const string& s1, const string& s2) const return (strcasecmp(a,b) == 0); } -bool InAddr_HashComp::operator()(const in_addr &s1, const in_addr &s2) const +bool irc::InAddr_HashComp::operator()(const in_addr &s1, const in_addr &s2) const { size_t q; size_t p; diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 20b924013..5649b6ca1 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -78,8 +78,8 @@ extern std::vector<userrec*> all_opers; extern ClassVector Classes; -typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; -typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; +typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; +typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; typedef std::deque<command_t> command_table; extern user_hash clientlist; diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 56d476c48..4464be755 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -107,10 +107,10 @@ time_t TIME = time(NULL), OLDTIME = time(NULL); int kq, lkq, skq; #endif -typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; -typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; -typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; -typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, StrHashComp> whowas_hash; +typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; +typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; +typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash; typedef std::deque<command_t> command_table; // This table references users by file descriptor. diff --git a/src/modules.cpp b/src/modules.cpp index fba0db10a..c0dcc3ca7 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -106,10 +106,10 @@ extern FILE *log_file; extern userrec* fd_ref_table[65536]; -typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; -typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; -typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; -typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, StrHashComp> whowas_hash; +typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; +typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; +typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash; typedef std::deque<command_t> command_table; diff --git a/src/xline.cpp b/src/xline.cpp index 1d0bcf775..fa400d5c5 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -92,10 +92,10 @@ extern serverrec* me[32]; extern FILE *log_file; -typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; -typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; -typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; -typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, StrHashComp> whowas_hash; +typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; +typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; +typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash; typedef std::deque<command_t> command_table; |