diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:02:06 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:02:06 +0000 |
commit | e289e5ade0bb32631e41a534cf3eab45b3bfebe4 (patch) | |
tree | 4d8c5efff4543aafd525ae27c6c2601228236039 | |
parent | 9dad4ddb937cc04d075451c21fcbe9f1ca4646c9 (diff) |
Various small warning fixes.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1668 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | include/users.h | 2 | ||||
-rw-r--r-- | src/core/bs_info.c | 1 | ||||
-rw-r--r-- | src/modulemanager.cpp | 1 | ||||
-rw-r--r-- | src/protocol/bahamut.c | 4 |
4 files changed, 3 insertions, 5 deletions
diff --git a/include/users.h b/include/users.h index 4ce8811af..5577bbd50 100644 --- a/include/users.h +++ b/include/users.h @@ -38,7 +38,7 @@ class User char *nickTrack; /* Nick Tracking */ time_t timestamp; /* Timestamp of the nick */ time_t my_signon; /* When did _we_ see the user? */ - uint32 svid; /* Services ID */ + time_t svid; /* Services ID */ uint32 mode; /* See below */ char *uid; /* Univeral ID */ diff --git a/src/core/bs_info.c b/src/core/bs_info.c index b72e6542e..8404d96e4 100644 --- a/src/core/bs_info.c +++ b/src/core/bs_info.c @@ -64,7 +64,6 @@ int do_info(User * u) if (!query) syntax_error(s_BotServ, u, "INFO", BOT_INFO_SYNTAX); else if ((bi = findbot(query))) { - char buf[BUFSIZE]; struct tm *tm; notice_lang(s_BotServ, u, BOT_INFO_BOT_HEADER, bi->nick); diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index 3ff8835f6..f38a9eade 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -134,7 +134,6 @@ static int encryptionModuleLoaded() int ModuleManager::LoadModule(const std::string &modname, User * u) { - int len; const char *err; Module * (*func) (const std::string &); int ret = 0; diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 536da1bad..d512f93c8 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -531,7 +531,7 @@ class BahamutIRCdProto : public IRCDProto /* SVSHOLD - set */ void SendSVSHold(const char *nick) { - send_cmd(ServerName, "SVSHOLD %s %d :%s", nick, NSReleaseTimeout, "Being held for registered user"); + send_cmd(ServerName, "SVSHOLD %s %ld :%s", nick, (unsigned int)NSReleaseTimeout, "Being held for registered user"); } /* SVSHOLD - release */ @@ -638,7 +638,7 @@ class BahamutIRCdProto : public IRCDProto // Calculate the time left before this would expire, capping it at 2 days time_t timeleft = expires - time(NULL); if (timeleft > 172800) timeleft = 172800; - send_cmd(NULL, "AKILL %s %s %d %s %ld :%s", host, user, timeleft, who, static_cast<long>(time(NULL)), reason); + send_cmd(NULL, "AKILL %s %s %d %s %ld :%s", host, user, (unsigned int)timeleft, who, static_cast<long>(time(NULL)), reason); } /* SVSKILL */ |