Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/fortune/fortune fix nested extern and usage message



details:   https://anonhg.NetBSD.org/src/rev/8d7aa12cfb6d
branches:  trunk
changeset: 503356:8d7aa12cfb6d
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 05 00:29:44 2001 +0000

description:
fix nested extern and usage message

diffstat:

 games/fortune/fortune/fortune.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 60bab2e6bd6a -r 8d7aa12cfb6d games/fortune/fortune/fortune.c
--- a/games/fortune/fortune/fortune.c   Mon Feb 05 00:28:30 2001 +0000
+++ b/games/fortune/fortune/fortune.c   Mon Feb 05 00:29:44 2001 +0000
@@ -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 @@
 #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 @@
 #define                NAMLEN(d)       ((d)->d_namlen)
 #endif
 
+extern char *__progname;
+
 int
 main(ac, av)
        int     ac;
@@ -1355,8 +1357,7 @@
 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 */



Home | Main Index | Thread Index | Old Index