summaryrefslogtreecommitdiffstats
path: root/fortune
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2001-02-05 00:29:44 +0000
committerchristos <christos@NetBSD.org>2001-02-05 00:29:44 +0000
commit4af7918feecde8c98a6baf91564e55fcc594fc6b (patch)
tree0e917411c5a35149d2a0b4088c58a7d43c5a21c8 /fortune
parentc88c8e5b3cb0a20c66e772a7641610f7c1b2ed20 (diff)
downloadbsdgames-darwin-4af7918feecde8c98a6baf91564e55fcc594fc6b.tar.gz
bsdgames-darwin-4af7918feecde8c98a6baf91564e55fcc594fc6b.tar.zst
bsdgames-darwin-4af7918feecde8c98a6baf91564e55fcc594fc6b.zip
fix nested extern and usage message
Diffstat (limited to 'fortune')
-rw-r--r--fortune/fortune/fortune.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c
index 54ef2018..5a383bc1 100644
--- a/fortune/fortune/fortune.c
+++ b/fortune/fortune/fortune.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fortune.c,v 1.25 2001/01/04 17:24:35 lukem Exp $ */
+/* $NetBSD: fortune.c,v 1.26 2001/02/05 00:29:44 christos Exp $ */
/*-
* Copyright (c) 1986, 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fortune.c,v 1.25 2001/01/04 17:24:35 lukem Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.26 2001/02/05 00:29:44 christos Exp $");
#endif
#endif /* not lint */
@@ -206,6 +206,8 @@ regex_t *Re_pat = NULL;
#define NAMLEN(d) ((d)->d_namlen)
#endif
+extern char *__progname;
+
int
main(ac, av)
int ac;
@@ -1355,8 +1357,7 @@ matches_in_list(list)
void
usage()
{
- extern char *__progname;
- (void) fprintf(stderr, "%s [-a", __progname);
+ (void) fprintf(stderr, "Usage: %s [-a", __progname);
#ifdef DEBUG
(void) fprintf(stderr, "D");
#endif /* DEBUG */