diff options
author | dholland <dholland@NetBSD.org> | 2012-06-19 05:30:43 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2012-06-19 05:30:43 +0000 |
commit | 60030fd11e6c646dbc35c5254b2520d5af45288f (patch) | |
tree | 2d9c57e3deb2afa23793d42c8ba11c5b98398282 /larn/tok.c | |
parent | 98b4affa216164b77e59278a2b1cdc3deee77716 (diff) | |
download | bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.tar.gz bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.tar.zst bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.zip |
WARNS=5
Diffstat (limited to 'larn/tok.c')
-rw-r--r-- | larn/tok.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,9 +1,9 @@ -/* $NetBSD: tok.c,v 1.10 2008/02/04 01:07:01 dholland Exp $ */ +/* $NetBSD: tok.c,v 1.11 2012/06/19 05:30:44 dholland Exp $ */ /* tok.c Larn is copyrighted 1986 by Noah Morgan. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: tok.c,v 1.10 2008/02/04 01:07:01 dholland Exp $"); +__RCSID("$NetBSD: tok.c,v 1.11 2012/06/19 05:30:44 dholland Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -35,7 +35,7 @@ static u_char usermpoint = 0; /* the user monster pointer */ lexical analyzer for larn */ int -yylex() +yylex(void) { char cc; int ic; @@ -111,7 +111,7 @@ yylex() * flushall() Function to flush all type-ahead in the input buffer */ void -flushall() +flushall(void) { char cc; int ic; @@ -132,8 +132,7 @@ flushall() enter with hard= -1 for default hardness, else any desired hardness */ void -sethard(hard) - int hard; +sethard(int hard) { int j, k, i; struct monst *mp; @@ -167,7 +166,7 @@ sethard(hard) function to read and process the larn options file */ void -readopts() +readopts(void) { const char *i; int j, k; |