From 6ad7e65ad5121cd1ad3f2f19c7e9a9912cfa44f0 Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 8 Jan 2013 03:54:38 +0100 Subject: [PATCH] fixed multiple compiler warnings --- src/mod-helpserv.c | 1 - src/nickserv.c | 2 +- src/spamserv.c | 2 +- src/spamserv.h | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mod-helpserv.c b/src/mod-helpserv.c index 7f645a9..bd1cf1c 100644 --- a/src/mod-helpserv.c +++ b/src/mod-helpserv.c @@ -4061,7 +4061,6 @@ static void associate_requests_bybot(struct helpserv_bot *hs, struct userNode *u struct helpserv_reqlist *reqlist, *hand_reqlist=NULL; struct helpserv_request *newest=NULL, *nicknewest=NULL; unsigned int i; - const int from_opserv = 0; /* For helpserv_notice */ if (!(user->handle_info && (hand_reqlist = dict_find(helpserv_reqs_byhand_dict, user->handle_info->handle, NULL))) && !force_greet) { return; diff --git a/src/nickserv.c b/src/nickserv.c index 0912912..4cb86a7 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -1969,7 +1969,7 @@ static NICKSERV_FUNC(cmd_auth) return 1; } -struct handle_info *checklogin(const char *user, const char *pass, const char *numeric, const char *hostmask, const char *ipmask) +struct handle_info *checklogin(const char *user, const char *pass, UNUSED_ARG(const char *numeric), const char *hostmask, const char *ipmask) { struct handle_info *hi; unsigned int match = 0, ii = 0; diff --git a/src/spamserv.c b/src/spamserv.c index 35cf836..0a88cb2 100644 --- a/src/spamserv.c +++ b/src/spamserv.c @@ -1839,7 +1839,7 @@ spamserv_saxdb_read(struct dict *database) struct string_list *strlist; unsigned int flags,exceptlevel; char *str, *info; - time_t expiry; + unsigned long expiry; for(it = dict_first(database); it; it = iter_next(it)) { diff --git a/src/spamserv.h b/src/spamserv.h index a97ff6e..b6b6ac6 100644 --- a/src/spamserv.h +++ b/src/spamserv.h @@ -65,7 +65,7 @@ struct chanInfo unsigned int flags : 30; unsigned int exceptlevel; char info[CHAN_INFO_SIZE]; - time_t suspend_expiry; + unsigned long suspend_expiry; }; /***********************************************/ -- 2.20.1