diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2010-08-01 18:48:40 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2010-08-01 18:48:40 +0200 |
commit | 2f6c0e435cbceb60c219f9f1cd925ae4ddffd4d9 (patch) | |
tree | e4f9dc550299af41da8967518514bdf5091f0e06 | |
parent | cb3a18e524a07a28ef608cf35c843d402c3159bb (diff) |
some code cleanup in misc.cpp and fixed a small typo
-rw-r--r-- | include/users.h | 2 | ||||
-rw-r--r-- | 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]; |