fixed multiple compiler warnings
[srvx.git] / src / mod-helpserv.c
index 384339db9e5db67037f94d8aec3467145590146c..bd1cf1c3ffde831e7cc1993e3efe6ad635adf984 100644 (file)
@@ -1371,7 +1371,7 @@ static void helpserv_del_user(struct helpserv_bot *hs, struct helpserv_user *hs_
 }
 
 static int cmd_add_user(struct helpserv_bot *hs, int from_opserv, struct userNode *user, enum helpserv_level level, int argc, char *argv[]) {
-    struct helpserv_user *actor, *new_user;
+    struct helpserv_user *actor;
     struct handle_info *handle;
 
     REQUIRE_PARMS(2);
@@ -1399,7 +1399,7 @@ static int cmd_add_user(struct helpserv_bot *hs, int from_opserv, struct userNod
         return 0;
     }
 
-    new_user = helpserv_add_user(hs, handle, level);
+    helpserv_add_user(hs, handle, level);
 
     helpserv_notice(user, "HSMSG_ADDED_USER", helpserv_level2str(level), handle->handle);
     return 1;
@@ -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;