summaryrefslogtreecommitdiffstats
path: root/worms
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2012-06-19 05:46:08 +0000
committerdholland <dholland@NetBSD.org>2012-06-19 05:46:08 +0000
commit59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c (patch)
tree629475be65e4569ada852759c1510dc0ea17512f /worms
parent4cb1100e13371f1523900523aba506ae1c62e44c (diff)
downloadbsdgames-darwin-59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c.tar.gz
bsdgames-darwin-59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c.tar.zst
bsdgames-darwin-59a1b2e1425834dcc8f7d2b99c931f3c6f6bc28c.zip
WARNS=5, and make WARNS=5 the default for src/games.
Diffstat (limited to 'worms')
-rw-r--r--worms/worms.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/worms/worms.c b/worms/worms.c
index 03c26f3b..b69ec125 100644
--- a/worms/worms.c
+++ b/worms/worms.c
@@ -1,4 +1,4 @@
-/* $NetBSD: worms.c,v 1.21 2011/08/31 16:24:56 plunky Exp $ */
+/* $NetBSD: worms.c,v 1.22 2012/06/19 05:46:09 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0
static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: worms.c,v 1.21 2011/08/31 16:24:56 plunky Exp $");
+__RCSID("$NetBSD: worms.c,v 1.22 2012/06/19 05:46:09 dholland Exp $");
#endif
#endif /* not lint */
@@ -184,9 +184,7 @@ static void nomem(void) __dead;
static void onsig(int);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int x, y, h, n;
struct worm *w;
@@ -340,14 +338,13 @@ main(argc, argv)
}
static void
-onsig(signo)
- int signo __unused;
+onsig(int signo __unused)
{
sig_caught = 1;
}
static void
-nomem()
+nomem(void)
{
errx(1, "not enough memory.");
}