diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-19 23:13:30 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-19 23:13:30 +0000 |
| commit | 6ce5c90619491440fc68f011c372feaaaf9d66dc (patch) | |
| tree | 8e27c7a340a01d6c8cc13229369aabdb50a76d8b /src/protocol | |
| parent | 6c62e3968051283b73aa817966058906f28f289e (diff) | |
Add a few items to outstanding issues in TODO, clean up a lot of warnings (not all, some require more widespread changes than this), and fix a few potential bugs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2457 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol')
| -rw-r--r-- | src/protocol/bahamut.c | 5 | ||||
| -rw-r--r-- | src/protocol/inspircd11.c | 5 | ||||
| -rw-r--r-- | src/protocol/ratbox.c | 4 | ||||
| -rw-r--r-- | src/protocol/unreal32.c | 7 |
4 files changed, 9 insertions, 12 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index e8be32ca9..050d37fb0 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -709,14 +709,13 @@ class BahamutIRCdProto : public IRCDProto void SetAutoIdentificationToken(User *u) { - int *c; - char svidbuf[15]; + char svidbuf[15], *c; if (!u->nc) return; srand(time(NULL)); - snprintf(svidbuf, sizeof(svidbuf), "%i", rand()); + snprintf(svidbuf, sizeof(svidbuf), "%d", rand()); if (u->nc->GetExt("authenticationtoken", c)) { diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 43369f4c3..846f3f6fc 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -678,13 +678,12 @@ class InspIRCdProto : public IRCDProto void SetAutoIdentificationToken(User *u) { - int *c; - char svidbuf[15]; + char svidbuf[15], *c; if (!u->nc) return; - snprintf(svidbuf, sizeof(svidbuf), "%ld", u->timestamp); + snprintf(svidbuf, sizeof(svidbuf), "%ld", static_cast<long>(u->timestamp)); if (u->nc->GetExt("authenticationtoken", c)) { diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 7cb6cb884..d338277e9 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -688,8 +688,8 @@ class RatboxProto : public IRCDTS6Proto if (!u->nc) return; - - snprintf(svidbuf, sizeof(svidbuf), "%ld", u->timestamp); + + snprintf(svidbuf, sizeof(svidbuf), "%ld", static_cast<long>(u->timestamp)); if (u->nc->GetExt("authenticationtoken", c)) { diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index 44752af7a..ee97a8ca6 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -902,14 +902,13 @@ class UnrealIRCdProto : public IRCDProto void SetAutoIdentificationToken(User *u) { - int *c; - char svidbuf[15]; + char svidbuf[15], *c; if (!u->nc) return; srand(time(NULL)); - snprintf(svidbuf, sizeof(svidbuf), "%i", rand()); + snprintf(svidbuf, sizeof(svidbuf), "%d", rand()); if (u->nc->GetExt("authenticationtoken", c)) { @@ -1479,7 +1478,7 @@ class ProtoUnreal : public Module pmodule_ircd_proto(&ircd_proto); moduleAddIRCDMsgs(); - + ModuleManager::Attach(I_OnDelCore, this); } |
