some lint bits (trunk only)

This commit is contained in:
nethack.rankin
2012-02-16 03:01:38 +00:00
parent 337e158009
commit b94f26a8c8
5 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -1817,7 +1817,7 @@ int x, y;
void void
rot_organic(arg, timeout) rot_organic(arg, timeout)
anything *arg; anything *arg;
long timeout; /* unused */ long timeout UNUSED;
{ {
struct obj *obj = arg->a_obj; struct obj *obj = arg->a_obj;
+6 -3
View File
@@ -263,10 +263,12 @@ lib_dlb_cleanup(VOID_ARGS)
close_library(&dlb_libs[i]); close_library(&dlb_libs[i]);
} }
/*ARGSUSED*/
STATIC_OVL boolean STATIC_OVL boolean
lib_dlb_fopen(dp, name, mode) lib_dlb_fopen(dp, name, mode)
dlb *dp; dlb *dp;
const char *name, *mode; const char *name;
const char *mode UNUSED;
{ {
long start, size; long start, size;
library *lp; library *lp;
@@ -278,14 +280,15 @@ lib_dlb_fopen(dp, name, mode)
dp->size = size; dp->size = size;
dp->mark = 0; dp->mark = 0;
return TRUE; return TRUE;
} }
return FALSE; /* failed */ return FALSE; /* failed */
} }
/*ARGUSED*/
STATIC_OVL int STATIC_OVL int
lib_dlb_fclose(dp) lib_dlb_fclose(dp)
dlb *dp; dlb *dp UNUSED;
{ {
/* nothing needs to be done */ /* nothing needs to be done */
return 0; return 0;
+2 -2
View File
@@ -366,10 +366,10 @@ struct obj *obj;
} }
/* query_objlist callback: return TRUE */ /* query_objlist callback: return TRUE */
/*ARGSUSED*/ /*ARGUSED*/
boolean boolean
allow_all(obj) allow_all(obj)
struct obj *obj; struct obj *obj UNUSED;
{ {
return TRUE; return TRUE;
} }
+5 -4
View File
@@ -1,11 +1,9 @@
/* NetHack 3.5 role.c $Date$ $Revision$ */ /* NetHack 3.5 role.c $Date$ $Revision$ */
/* SCCS Id: @(#)role.c 3.5 2006/05/24 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985-1999. */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985-1999. */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
#include "hack.h" #include "hack.h"
/*** Table of all roles ***/ /*** Table of all roles ***/
/* According to AD&D, HD for some classes (ex. Wizard) should be smaller /* 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 * (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) */ /* gender and alignment are not comparable (and also not constrainable) */
boolean boolean
ok_gend(rolenum, racenum, gendnum, alignnum) ok_gend(rolenum, racenum, gendnum, alignnum)
int rolenum, racenum, gendnum, alignnum; int rolenum, racenum, gendnum;
int alignnum UNUSED;
{ {
int i; int i;
short allow; short allow;
@@ -965,7 +964,9 @@ int rolenum, racenum, alignnum, pickhow;
/* alignment and gender are not comparable (and also not constrainable) */ /* alignment and gender are not comparable (and also not constrainable) */
boolean boolean
ok_align(rolenum, racenum, gendnum, alignnum) ok_align(rolenum, racenum, gendnum, alignnum)
int rolenum, racenum, gendnum, alignnum; int rolenum, racenum;
int gendnum UNUSED;
int alignnum;
{ {
int i; int i;
short allow; short allow;
+1 -1
View File
@@ -3990,7 +3990,7 @@ long min_time; /* <x,y>'s old melt timeout (deleted by time we get here) */
void void
melt_ice_away(arg, timeout) melt_ice_away(arg, timeout)
anything *arg; anything *arg;
long timeout; /* unused */ long timeout UNUSED;
{ {
xchar x,y; xchar x,y;
long where = arg->a_long; long where = arg->a_long;