diff options
-rw-r--r-- | include/inspircd.h | 2 | ||||
-rw-r--r-- | src/helperfuncs.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_check.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 558056198..7d6e3803e 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -42,7 +42,7 @@ */ #define IS_SINGLE(x,y) ( (*x == y) && (*(x+1) == 0) ) -#define DELETE(x) { log(DEBUG,"%s:%s: delete()",__FILE__,__LINE__); delete x; } +#define DELETE(x) { log(DEBUG,"%s:%d: delete()",__FILE__,__LINE__); delete x; } template<typename T> inline std::string ConvToStr(const T &in) { diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 13716b78b..279ccc5f4 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -1445,7 +1445,7 @@ void Error(int status) log(DEFAULT,"Please report the backtrace lines shown below with any bugreport to the bugtracker at http://www.inspircd.org/bugtrack/"); size = backtrace(array, 30); strings = backtrace_symbols(array, size); - for (int i = 0; i < size; i++) { + for (size_t i = 0; i < size; i++) { log(DEFAULT,"[%d] %s", i, strings[i]); } free(strings); diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index c905a56e9..68c677d09 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -128,7 +128,7 @@ class cmd_check : public command_t * find how many connections from this user's IP -- unlike Asuka, * I define a clone as coming from the same host. --w00t */ - sprintf(ptr, "%l ", FindMatchingGlobal(i->second)); + sprintf(ptr, "%lu ", FindMatchingGlobal(i->second)); if (flags & UCMODE_OP) { |