summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2010-08-01 18:48:40 +0200
committerDukePyrolator <DukePyrolator@anope.org>2010-08-01 18:48:40 +0200
commit2f6c0e435cbceb60c219f9f1cd925ae4ddffd4d9 (patch)
treee4f9dc550299af41da8967518514bdf5091f0e06
parentcb3a18e524a07a28ef608cf35c843d402c3159bb (diff)
some code cleanup in misc.cpp and fixed a small typo
-rw-r--r--include/users.h2
-rw-r--r--src/misc.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/users.h b/include/users.h
index 2c10690c4..636b3ce6d 100644
--- a/include/users.h
+++ b/include/users.h
@@ -176,7 +176,7 @@ class CoreExport User : public Extensible
void Logout();
/** Get the account the user is logged in using
- * @reurn The account or NULL
+ * @return The account or NULL
*/
virtual NickCore *Account();
virtual const NickCore *Account() const;
diff --git a/src/misc.cpp b/src/misc.cpp
index cac6b8b08..263d45b5f 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -1308,9 +1308,9 @@ Anope::string Anope::Hex(const Anope::string &data)
{
const char hextable[] = "0123456789abcdef";
- int l = data.length();
+ size_t l = data.length();
Anope::string rv;
- for(int i=0; i < l; i++)
+ for (size_t i = 0; i < l; ++i)
{
unsigned char c = data[i];
rv += hextable[c >> 4];