From 2f6c0e435cbceb60c219f9f1cd925ae4ddffd4d9 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Sun, 1 Aug 2010 18:48:40 +0200 Subject: [PATCH] some code cleanup in misc.cpp and fixed a small typo --- include/users.h | 2 +- src/misc.cpp | 4 ++-- 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];