fixed multiple compiler warnings
authorpk910 <philipp@zoelle1.de>
Tue, 8 Jan 2013 02:54:38 +0000 (03:54 +0100)
committerpk910 <philipp@zoelle1.de>
Tue, 8 Jan 2013 02:54:38 +0000 (03:54 +0100)
src/mod-helpserv.c
src/nickserv.c
src/spamserv.c
src/spamserv.h

index 7f645a9d73d68b4c646f07cf11f063fc17d45336..bd1cf1c3ffde831e7cc1993e3efe6ad635adf984 100644 (file)
@@ -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;
index 0912912634246227a9de839a9a6d44d25ec976b5..4cb86a7adb1d7287fea278e96ee61c72f0121499 100644 (file)
@@ -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;
index 35cf836afaa72cf0864ddcd3fd8de0f67603439b..0a88cb23d51e96f61cf497f99b25f2a084bc495f 100644 (file)
@@ -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))
        {
index a97ff6eecf2059ba94459816c1b2122be035b6f9..b6b6ac61c6ccda29b71924695938c940f8d6c6c7 100644 (file)
@@ -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;
 };
 
 /***********************************************/