summaryrefslogtreecommitdiffstats
path: root/larn/tok.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2012-06-19 05:30:43 +0000
committerdholland <dholland@NetBSD.org>2012-06-19 05:30:43 +0000
commit60030fd11e6c646dbc35c5254b2520d5af45288f (patch)
tree2d9c57e3deb2afa23793d42c8ba11c5b98398282 /larn/tok.c
parent98b4affa216164b77e59278a2b1cdc3deee77716 (diff)
downloadbsdgames-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.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/larn/tok.c b/larn/tok.c
index 1a9b8bca..6bab595e 100644
--- a/larn/tok.c
+++ b/larn/tok.c
@@ -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;