summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-24 17:28:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-24 17:28:49 +0000
commit8b02407d93810de79cf62e7aee38e725912d63db (patch)
treef06eabeb9efd9b401a0c937e82753d68e91586a2
parenteff0dafcf0ede888d99fd6dbcd8a4a3705fc23ec (diff)
Fix various typos and warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3907 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/inspircd.h2
-rw-r--r--src/helperfuncs.cpp2
-rw-r--r--src/modules/m_check.cpp2
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)
{