aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-09 22:07:32 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-09 22:07:32 +0100
commitd7d7ef44ace4a2418edfa029816b48604a8df013 (patch)
tree3c6d5cb0f526f01fc2622360081b58e9fd25258b
parent789444eb44c64c67eeacac3e5e9a812ca9e136e5 (diff)
Fixed unused variables
-rw-r--r--FICS/adminproc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/FICS/adminproc.c b/FICS/adminproc.c
index 00c2389..7027e17 100644
--- a/FICS/adminproc.c
+++ b/FICS/adminproc.c
@@ -503,6 +503,10 @@ PUBLIC int com_checkTIMESEAL(int p, param_list param)
{
int p1, count = 0;
+ /* XXX: maybe unused */
+ (void) p1;
+ (void) count;
+
ASSERT(parray[p].adminLevel >= ADMIN_ADMIN);
pprintf(p, "The following player(s) are using timeseal:\n\n");
@@ -1245,7 +1249,7 @@ PUBLIC int com_asethandle(int p, param_list param)
*/
PUBLIC int com_asetadmin(int p, param_list param)
{
- int p1, connected, oldlevel;
+ int p1, connected;
ASSERT(parray[p].adminLevel >= ADMIN_GOD);
if (!FindPlayer(p, param[0].val.word,&p1, &connected))
@@ -1267,7 +1271,7 @@ PUBLIC int com_asetadmin(int p, param_list param)
player_remove(p1);
return COM_OK;
}
- oldlevel = parray[p1].adminLevel;
+ //oldlevel = parray[p1].adminLevel; XXX: set but not used
parray[p1].adminLevel = param[1].val.integer;
pprintf(p, "Admin level of %s set to %d.\n", parray[p1].name, parray[p1].adminLevel);
player_save(p1);