]> granicus.if.org Git - nethack/commitdiff
some lint bits (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 16 Feb 2012 03:01:38 +0000 (03:01 +0000)
committernethack.rankin <nethack.rankin>
Thu, 16 Feb 2012 03:01:38 +0000 (03:01 +0000)
src/dig.c
src/dlb.c
src/pickup.c
src/role.c
src/zap.c

index 80f766ba98feecdd5adc55147a8d5ebb7b17250a..94ee98a182a3944d3d64a3216b906574b097b22f 100644 (file)
--- a/src/dig.c
+++ b/src/dig.c
@@ -1817,7 +1817,7 @@ int x, y;
 void
 rot_organic(arg, timeout)
 anything *arg;
-long timeout;  /* unused */
+long timeout UNUSED;
 {
        struct obj *obj = arg->a_obj;
 
index 7c0b9af762afe447b207fb22e19d3131a161b1e9..394678ca24c15e0b367c8166d767583c77363202 100644 (file)
--- a/src/dlb.c
+++ b/src/dlb.c
@@ -263,10 +263,12 @@ lib_dlb_cleanup(VOID_ARGS)
        close_library(&dlb_libs[i]);
 }
 
+/*ARGSUSED*/
 STATIC_OVL boolean
 lib_dlb_fopen(dp, name, mode)
     dlb *dp;
-    const char *name, *mode;
+    const char *name;
+    const char *mode UNUSED;
 {
     long start, size;
     library *lp;
@@ -278,14 +280,15 @@ lib_dlb_fopen(dp, name, mode)
        dp->size = size;
        dp->mark = 0;
        return TRUE;
-       }
+    }
 
     return FALSE;      /* failed */
 }
 
+/*ARGUSED*/
 STATIC_OVL int
 lib_dlb_fclose(dp)
-    dlb *dp;
+    dlb *dp UNUSED;
 {
     /* nothing needs to be done */
     return 0;
index 1545449ca8bad06d18114b10aa4d49ed43f1e095..e73a5576c41a44c38b26da6c751115da3f42c622 100644 (file)
@@ -366,10 +366,10 @@ struct obj *obj;
 }
 
 /* query_objlist callback: return TRUE */
-/*ARGSUSED*/
+/*ARGUSED*/
 boolean
 allow_all(obj)
-struct obj *obj;
+struct obj *obj UNUSED;
 {
     return TRUE;
 }
index 8adbf9bc31a08e7f4a35bf7b79c9c7a0105c964e..570acf772ebfbf7d9417d1b60075ad46200ae037 100644 (file)
@@ -1,11 +1,9 @@
 /* NetHack 3.5 role.c  $Date$  $Revision$ */
-/*     SCCS Id: @(#)role.c     3.5     2006/05/24      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985-1999. */
 /* NetHack may be freely redistributed.  See license for details. */
 
 #include "hack.h"
 
-
 /*** Table of all roles ***/
 /* According to AD&D, HD for some classes (ex. Wizard) should be smaller
  * (4-sided for wizards).  But this is not AD&D, and using the AD&D
@@ -901,7 +899,8 @@ int rolenum, gendnum, alignnum, pickhow;
 /* gender and alignment are not comparable (and also not constrainable) */
 boolean
 ok_gend(rolenum, racenum, gendnum, alignnum)
-int rolenum, racenum, gendnum, alignnum;
+int rolenum, racenum, gendnum;
+int alignnum UNUSED;
 {
     int i;
     short allow;
@@ -965,7 +964,9 @@ int rolenum, racenum, alignnum, pickhow;
 /* alignment and gender are not comparable (and also not constrainable) */
 boolean
 ok_align(rolenum, racenum, gendnum, alignnum)
-int rolenum, racenum, gendnum, alignnum;
+int rolenum, racenum;
+int gendnum UNUSED;
+int alignnum;
 {
     int i;
     short allow;
index 47a6375fe2b76a6810b0769d37332dea4c1f7a74..3e51d5b0b15dda29da56019df4bf1cf755e9404a 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -3990,7 +3990,7 @@ long min_time;    /* <x,y>'s old melt timeout (deleted by time we get here) */
 void
 melt_ice_away(arg, timeout)
 anything *arg;
-long timeout;  /* unused */
+long timeout UNUSED;
 {
        xchar x,y;
        long where = arg->a_long;