summaryrefslogtreecommitdiffstats
path: root/robots/main.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-07-20 05:44:02 +0000
committerdholland <dholland@NetBSD.org>2009-07-20 05:44:02 +0000
commitce061e17a9dda9852d7bfd583c089bbd8dac1333 (patch)
tree012204b893307d40ce4f844f199906efcea20d69 /robots/main.c
parent275e28ad8575814dcb1749559423a55a82960cfe (diff)
downloadbsdgames-darwin-ce061e17a9dda9852d7bfd583c089bbd8dac1333.tar.gz
bsdgames-darwin-ce061e17a9dda9852d7bfd583c089bbd8dac1333.tar.zst
bsdgames-darwin-ce061e17a9dda9852d7bfd583c089bbd8dac1333.zip
ANSIfy. Use __dead. Object diffs checked.
Diffstat (limited to 'robots/main.c')
-rw-r--r--robots/main.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/robots/main.c b/robots/main.c
index 98e2ff29..f1dce70a 100644
--- a/robots/main.c
+++ b/robots/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.24 2008/08/08 16:10:47 drochner Exp $ */
+/* $NetBSD: main.c,v 1.25 2009/07/20 05:44:02 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,21 +39,17 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.24 2008/08/08 16:10:47 drochner Exp $");
+__RCSID("$NetBSD: main.c,v 1.25 2009/07/20 05:44:02 dholland Exp $");
#endif
#endif /* not lint */
# include "robots.h"
-int main(int, char **);
-
extern const char *Scorefile;
extern int Max_per_uid;
int
-main(ac, av)
- int ac;
- char **av;
+main(int ac, char **av)
{
const char *sp;
bool bad_arg;
@@ -197,8 +193,7 @@ main(ac, av)
* Leave the program elegantly.
*/
void
-quit(dummy)
- int dummy __unused;
+quit(int dummy __unused)
{
endwin();
exit(0);
@@ -210,7 +205,7 @@ quit(dummy)
* See if another game is desired
*/
bool
-another()
+another(void)
{
int y;