Source-Changes-HG archive

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

[src/trunk]: src/sbin/slattach fix nested extern



details:   https://anonhg.NetBSD.org/src/rev/f5f60b72d5e5
branches:  trunk
changeset: 503321:f5f60b72d5e5
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 21:11:47 2001 +0000

description:
fix nested extern

diffstat:

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

diffs (38 lines):

diff -r 818c2cb5ec17 -r f5f60b72d5e5 sbin/slattach/slattach.c
--- a/sbin/slattach/slattach.c  Sun Feb 04 21:09:07 2001 +0000
+++ b/sbin/slattach/slattach.c  Sun Feb 04 21:11:47 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: slattach.c,v 1.22 1999/09/03 13:31:29 proff Exp $      */
+/*     $NetBSD: slattach.c,v 1.23 2001/02/04 21:11:47 christos Exp $   */
 
 /*
  * Copyright (c) 1988, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)slattach.c 8.2 (Berkeley) 1/7/94";
 #else
-__RCSID("$NetBSD: slattach.c,v 1.22 1999/09/03 13:31:29 proff Exp $");
+__RCSID("$NetBSD: slattach.c,v 1.23 2001/02/04 21:11:47 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -78,6 +78,7 @@
 int    ttydisc __P((char *));
 void   usage __P((void));
 
+extern char *__progname;
 
 int
 main(argc, argv)
@@ -173,10 +174,8 @@
 void
 usage()
 {
-       extern char *__progname;
-
        (void)fprintf(stderr,
-           "usage: %s [-t ldisc] [-hHlm] [-s baudrate] ttyname\n",
+           "Usage: %s [-t ldisc] [-hHlm] [-s baudrate] ttyname\n",
                __progname);
        exit(1);
 }



Home | Main Index | Thread Index | Old Index