summaryrefslogtreecommitdiffstats
path: root/games/mille
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-04-01 06:14:35 +0000
committercharnier <charnier@FreeBSD.org>1998-04-01 06:14:35 +0000
commit27d5314a376273ceecd60f05f1df51dbb3eb28b7 (patch)
treef1d81201f53a48be4ca8b8ba5ccbbef5b82f47aa /games/mille
parent12946fc00d0ec116d1d522f4eb6b112279e2d4dc (diff)
downloadFreeBSD-src-27d5314a376273ceecd60f05f1df51dbb3eb28b7.zip
FreeBSD-src-27d5314a376273ceecd60f05f1df51dbb3eb28b7.tar.gz
Add Id.
Diffstat (limited to 'games/mille')
-rw-r--r--games/mille/mille.61
-rw-r--r--games/mille/mille.c21
-rw-r--r--games/mille/misc.c4
3 files changed, 22 insertions, 4 deletions
diff --git a/games/mille/mille.6 b/games/mille/mille.6
index 29ae50b..234f51e 100644
--- a/games/mille/mille.6
+++ b/games/mille/mille.6
@@ -30,6 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)mille.6 8.2 (Berkeley) 12/30/93
+.\" $Id$
.\"
.TH MILLE 6 "December 30, 1993"
.UC 4
diff --git a/games/mille/mille.c b/games/mille/mille.c
index 7409fbb..cd86dd4 100644
--- a/games/mille/mille.c
+++ b/games/mille/mille.c
@@ -32,13 +32,17 @@
*/
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1982, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
+#if 0
static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
# include "mille.h"
@@ -51,8 +55,12 @@ static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93";
* @(#)mille.c 1.3 (Berkeley) 5/10/83
*/
+void check_more __P((void));
+void die __P((int));
void rub();
+static void usage __P((void));
+int
main(ac, av)
reg int ac;
reg char *av[]; {
@@ -75,8 +83,7 @@ reg char *av[]; {
case 1:
break;
default:
- printf("usage: milles [ restore_file ]\n");
- exit(-1);
+ usage();
/* NOTREACHED */
}
Play = PLAYER;
@@ -131,6 +138,13 @@ reg char *av[]; {
}
}
+static void
+usage()
+{
+ fprintf(stderr, "usage: mille [restore_file]\n");
+ exit(1);
+}
+
/*
* Routine to trap rubouts, and make sure they really want to
* quit.
@@ -147,6 +161,7 @@ rub() {
/*
* Time to go beddy-by
*/
+void
die(code)
int code; {
diff --git a/games/mille/misc.c b/games/mille/misc.c
index 28e175e..5f1233e 100644
--- a/games/mille/misc.c
+++ b/games/mille/misc.c
@@ -215,7 +215,9 @@ register int promptno; {
* came from a saved file, make sure that they don't want to restore
* it. Exit appropriately.
*/
-check_more() {
+void
+check_more()
+{
On_exit = TRUE;
if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000)
OpenPOWER on IntegriCloud