-/* $NetBSD: main.c,v 1.30 2009/08/05 04:03:47 dholland Exp $ */
+/* $NetBSD: main.c,v 1.32 2009/08/12 08:30:55 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.30 2009/08/05 04:03:47 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.32 2009/08/12 08:30:55 dholland Exp $");
#endif
#endif /* not lint */
extern const char *Scorefile;
extern int Max_per_uid;
+static bool another(void);
+
int
main(int argc, char **argv)
{
int score_wfd; /* high score writable file descriptor */
int score_err = 0; /* hold errno from score file open */
int maximum = 0;
- char ch;
- int i;
+ int ch, i;
score_wfd = open(Scorefile, O_RDWR);
if (score_wfd < 0)
* another:
* See if another game is desired
*/
-bool
+static bool
another(void)
{
int y;