summaryrefslogtreecommitdiffstats
path: root/rogue/main.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-01-14 03:50:01 +0000
committerdholland <dholland@NetBSD.org>2008-01-14 03:50:01 +0000
commit171895fb3091b20b772c7ce10af67d5d5e3c03f9 (patch)
treea4391bc3bd148b10908feb040df0693176f91e5f /rogue/main.c
parent75ac6f4b4e5cbe8cd70943b174c38771b817c6ff (diff)
downloadbsdgames-darwin-171895fb3091b20b772c7ce10af67d5d5e3c03f9.tar.gz
bsdgames-darwin-171895fb3091b20b772c7ce10af67d5d5e3c03f9.zip
ANSIfy. Remove unnecessary casts. Clean up for -Wsign-compare. Make more
things file-static. Other minor tidyups, and fix a couple minor bugs found along the way.
Diffstat (limited to 'rogue/main.c')
-rw-r--r--rogue/main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/rogue/main.c b/rogue/main.c
index 52d5135e..d2de354f 100644
--- a/rogue/main.c
+++ b/rogue/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.7 2008/01/14 00:23:52 dholland Exp $ */
+/* $NetBSD: main.c,v 1.8 2008/01/14 03:50:01 dholland Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.7 2008/01/14 00:23:52 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.8 2008/01/14 03:50:01 dholland Exp $");
#endif
#endif /* not lint */
@@ -60,12 +60,8 @@ __RCSID("$NetBSD: main.c,v 1.7 2008/01/14 00:23:52 dholland Exp $");
#include "rogue.h"
-int main(int, char **);
-
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
if (init(argc, argv)) { /* restored game */
goto PL;