summaryrefslogtreecommitdiffstats
path: root/arithmetic
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2001-02-05 00:20:58 +0000
committerchristos <christos@NetBSD.org>2001-02-05 00:20:58 +0000
commit5291c642e33577c5d349d5104aa04bec925c15bc (patch)
tree0c161ae297f62925177191116662a1ff582d1791 /arithmetic
parent824950ca125b18c2349daa341af6725fd96f96f6 (diff)
downloadbsdgames-darwin-5291c642e33577c5d349d5104aa04bec925c15bc.tar.gz
bsdgames-darwin-5291c642e33577c5d349d5104aa04bec925c15bc.tar.zst
bsdgames-darwin-5291c642e33577c5d349d5104aa04bec925c15bc.zip
fix nested extern
Diffstat (limited to 'arithmetic')
-rw-r--r--arithmetic/arithmetic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c
index c3ac455f..03e00106 100644
--- a/arithmetic/arithmetic.c
+++ b/arithmetic/arithmetic.c
@@ -1,4 +1,4 @@
-/* $NetBSD: arithmetic.c,v 1.15 2000/05/08 07:56:00 mycroft Exp $ */
+/* $NetBSD: arithmetic.c,v 1.16 2001/02/05 00:20:58 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
#if 0
static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: arithmetic.c,v 1.15 2000/05/08 07:56:00 mycroft Exp $");
+__RCSID("$NetBSD: arithmetic.c,v 1.16 2001/02/05 00:20:58 christos Exp $");
#endif
#endif /* not lint */
@@ -106,6 +106,8 @@ int nright, nwrong;
time_t qtime;
#define NQUESTS 20
+extern char *__progname; /* from crt0.o */
+
/*
* Select keys from +-x/ to be asked addition, subtraction, multiplication,
* and division problems. More than one key may be given. The default is
@@ -386,9 +388,7 @@ opnum(op)
void
usage()
{
- extern char *__progname; /* from crt0.o */
-
- (void)fprintf(stderr, "usage: %s [-o +-x/] [-r range]\n",
+ (void)fprintf(stderr, "Usage: %s [-o +-x/] [-r range]\n",
__progname);
exit(1);
}