Source-Changes-HG archive

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

[src/trunk]: src/games/arithmetic fix nested extern



details:   https://anonhg.NetBSD.org/src/rev/fdbd317e4d30
branches:  trunk
changeset: 503351:fdbd317e4d30
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 05 00:20:58 2001 +0000

description:
fix nested extern

diffstat:

 games/arithmetic/arithmetic.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r bc906d108ec4 -r fdbd317e4d30 games/arithmetic/arithmetic.c
--- a/games/arithmetic/arithmetic.c     Mon Feb 05 00:20:05 2001 +0000
+++ b/games/arithmetic/arithmetic.c     Mon Feb 05 00:20:58 2001 +0000
@@ -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 @@
 #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 @@
 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 @@
 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);
 }



Home | Main Index | Thread Index | Old Index