Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/head fix nested extern



details:   https://anonhg.NetBSD.org/src/rev/9cf90489ae0d
branches:  trunk
changeset: 503380:9cf90489ae0d
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 05 02:09:37 2001 +0000

description:
fix nested extern

diffstat:

 usr.bin/head/head.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 3541bba10153 -r 9cf90489ae0d usr.bin/head/head.c
--- a/usr.bin/head/head.c       Mon Feb 05 02:07:52 2001 +0000
+++ b/usr.bin/head/head.c       Mon Feb 05 02:09:37 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: head.c,v 1.12 1999/11/09 15:06:36 drochner Exp $       */
+/*     $NetBSD: head.c,v 1.13 2001/02/05 02:09:37 christos Exp $       */
 
 /*
  * Copyright (c) 1980, 1987, 1992, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)head.c     8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: head.c,v 1.12 1999/11/09 15:06:36 drochner Exp $");
+__RCSID("$NetBSD: head.c,v 1.13 2001/02/05 02:09:37 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -72,6 +72,8 @@
 
 int eval = 0;
 
+extern char *__progname;
+
 int
 main(argc, argv)
        int argc;
@@ -163,7 +165,6 @@
 void
 usage()
 {
-       extern char *__progname;
        (void)fprintf(stderr, "Usage: %s [-n lines] [file ...]\n", __progname);
        exit(1);
 }



Home | Main Index | Thread Index | Old Index