summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/hashcomp.h4
-rw-r--r--src/modules/m_spanningtree/uid.cpp7
2 files changed, 2 insertions, 9 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index 7093fa986..03ade20d1 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -593,7 +593,7 @@ BEGIN_HASHMAP_NAMESPACE
bool operator()(const irc::string & s1, const irc::string & s2) const
{
if(s1.length() != s2.length()) return true;
- return (irc::irc_char_traits::compare(s1.c_str(), s2.c_str(), s1.length()) < 0);
+ return (irc::irc_char_traits::compare(s1.c_str(), s2.c_str(), (size_t)s1.length()) < 0);
}
/** Hash an irc::string value for hash_map
@@ -611,7 +611,7 @@ BEGIN_HASHMAP_NAMESPACE
bool operator()(const std::string & s1, const std::string & s2) const
{
if(s1.length() != s2.length()) return true;
- return (irc::irc_char_traits::compare(s1.c_str(), s2.c_str(), s1.length()) < 0);
+ return (irc::irc_char_traits::compare(s1.c_str(), s2.c_str(), (size_t)s1.length()) < 0);
}
/** Hash a std::string using RFC1459 case sensitivity rules
diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp
index 7b7a477f2..3cc4c9618 100644
--- a/src/modules/m_spanningtree/uid.cpp
+++ b/src/modules/m_spanningtree/uid.cpp
@@ -12,13 +12,6 @@
*/
#include "inspircd.h"
-#include "commands/cmd_whois.h"
-#include "commands/cmd_stats.h"
-#include "socket.h"
-#include "xline.h"
-#include "transport.h"
-#include "m_hash.h"
-#include "socketengine.h"
#include "m_spanningtree/main.h"
#include "m_spanningtree/utils.h"