Fix compilation warnings from gcc 4.6.
[srvx.git] / src / nickserv.c
index a48565d6b1a6c085643099bd8280a634d309e590..f8941033ec820bfa388e0035707808e01ecdfc57 100644 (file)
@@ -2672,7 +2672,7 @@ static OPTION_FUNC(opt_fakehost)
         safestrncpy(mask, argv[1], sizeof(mask));
 
         if ((host = strrchr(mask, '@')) && host != mask) {
-            // If ident@host was used and the user doesn't have access to set idents, do not change anything.
+            /* If ident@host was used and the user doesn't have access to set idents, do not change anything. */
             if (!oper_has_access(user, nickserv, nickserv_conf.set_fakeident_level, 0)) {
                 host = NULL;
                 ident = NULL;
@@ -2763,12 +2763,10 @@ static OPTION_FUNC(opt_fakeident)
 
 static NICKSERV_FUNC(cmd_reclaim)
 {
-    struct handle_info *hi;
     struct nick_info *ni;
     struct userNode *victim;
 
     NICKSERV_MIN_PARMS(2);
-    hi = user->handle_info;
     ni = dict_find(nickserv_nick_dict, argv[1], 0);
     if (!ni) {
         reply("NSMSG_UNKNOWN_NICK", argv[1]);