diff options
| author | 2006-07-09 20:41:36 +0000 | |
|---|---|---|
| committer | 2006-07-09 20:41:36 +0000 | |
| commit | 6a831a13ce816907bbf4b3a0a76c449a59972983 (patch) | |
| tree | 6c9820913148a41ecd3c35fe3e8b7b5a06bc0e24 /src/hashcomp.cpp | |
| parent | Whack a space indent (diff) | |
FEAR THE POWER OF VIM AND THE ALMIGHTY "%s/ /\t/g"
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4249 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/hashcomp.cpp')
| -rw-r--r-- | src/hashcomp.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 3e1184a95..d1c452494 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * <brain@chatspike.net> - * <Craig@chatspike.net> + * E-mail: + * <brain@chatspike.net> + * <Craig@chatspike.net> * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -69,9 +69,9 @@ using namespace std; size_t nspace::hash<in_addr>::operator()(const struct in_addr &a) const { - size_t q; - memcpy(&q,&a,sizeof(size_t)); - return q; + size_t q; + memcpy(&q,&a,sizeof(size_t)); + return q; } size_t nspace::hash<string>::operator()(const string &s) const @@ -95,7 +95,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 { - return (s1.s_addr == s1.s_addr); + return (s1.s_addr == s1.s_addr); } /****************************************************** @@ -131,13 +131,13 @@ int irc::irc_char_traits::compare(const char* str1, const char* str2, size_t n) for(unsigned int i = 0; i < n; i++) { if(lowermap[(unsigned char)*str1] > lowermap[(unsigned char)*str2]) - return 1; + return 1; if(lowermap[(unsigned char)*str1] < lowermap[(unsigned char)*str2]) - return -1; + return -1; - if(*str1 == 0 || *str2 == 0) - return 0; + if(*str1 == 0 || *str2 == 0) + return 0; str1++; str2++; |
