Source-Changes-HG archive

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

[src/trunk]: src/usr.bin Don't declare 'extern opt*' getopt variables.



details:   https://anonhg.NetBSD.org/src/rev/7109e2992f84
branches:  trunk
changeset: 484877:7109e2992f84
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Apr 14 06:11:07 2000 +0000

description:
Don't declare 'extern opt*' getopt variables.

diffstat:

 usr.bin/crunch/crunchgen/crunchgen.c |  6 ++----
 usr.bin/env/env.c                    |  3 +--
 usr.bin/fgen/fgen.l                  |  4 +---
 usr.bin/last/last.c                  |  6 ++----
 usr.bin/lock/lock.c                  |  5 ++---
 usr.bin/make/main.c                  |  8 +++-----
 usr.bin/netstat/main.c               |  6 ++----
 usr.bin/nfsstat/nfsstat.c            |  6 ++----
 usr.bin/passwd/passwd.c              |  5 ++---
 usr.bin/rup/rup.c                    |  5 ++---
 usr.bin/rusers/rusers.c              |  5 ++---
 usr.bin/skey/skey.c                  |  6 ++----
 usr.bin/tput/tput.c                  |  6 ++----
 usr.bin/ul/ul.c                      |  6 ++----
 usr.bin/units/units.c                |  5 +----
 usr.bin/usbhidctl/usbhid.c           |  4 +---
 usr.bin/vmstat/vmstat.c              |  6 ++----
 usr.bin/wall/wall.c                  |  5 ++---
 usr.bin/ypmatch/ypmatch.c            |  6 ++----
 19 files changed, 35 insertions(+), 68 deletions(-)

diffs (truncated from 485 to 300 lines):

diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/crunch/crunchgen/crunchgen.c
--- a/usr.bin/crunch/crunchgen/crunchgen.c      Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/crunch/crunchgen/crunchgen.c      Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crunchgen.c,v 1.14 2000/01/24 18:07:54 mycroft Exp $   */
+/*     $NetBSD: crunchgen.c,v 1.15 2000/04/14 06:11:07 simonb Exp $    */
 /*
  * Copyright (c) 1994 University of Maryland
  * All Rights Reserved.
@@ -33,7 +33,7 @@
  */
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: crunchgen.c,v 1.14 2000/01/24 18:07:54 mycroft Exp $");
+__RCSID("$NetBSD: crunchgen.c,v 1.15 2000/04/14 06:11:07 simonb Exp $");
 #endif
 
 #include <stdlib.h>
@@ -115,8 +115,6 @@
 {
     char *p;
     int optc;
-    extern int optind;
-    extern char *optarg;
 
     if ((machine = getenv("MACHINE")) == NULL) {
        struct utsname utsname;
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/env/env.c
--- a/usr.bin/env/env.c Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/env/env.c Fri Apr 14 06:11:07 2000 +0000
@@ -39,7 +39,7 @@
 
 #ifndef lint
 /*static char sccsid[] = "@(#)env.c    8.3 (Berkeley) 4/2/94";*/
-__RCSID("$NetBSD: env.c,v 1.12 1999/11/02 10:56:32 lukem Exp $");
+__RCSID("$NetBSD: env.c,v 1.13 2000/04/14 06:11:07 simonb Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -59,7 +59,6 @@
        char **argv;
 {
        extern char **environ;
-       extern int optind;
        char **ep, *p;
        char *cleanenv[1];
        int ch;
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/fgen/fgen.l
--- a/usr.bin/fgen/fgen.l       Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/fgen/fgen.l       Fri Apr 14 06:11:07 2000 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: fgen.l,v 1.8 1999/06/08 12:45:47 tron Exp $    */
+/*     $NetBSD: fgen.l,v 1.9 2000/04/14 06:11:07 simonb Exp $  */
 /* FLEX input for FORTH input file scanner */
 /*  
  * Copyright (c) 1998 Eduardo Horvath.
@@ -952,8 +952,6 @@
        int argc;
        char *argv[];
 {
-       extern char *optarg;
-       extern int optind;
        int bflag, ch;
        FILE *inf;
        struct fcode_header *fheader;
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/last/last.c
--- a/usr.bin/last/last.c       Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/last/last.c       Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: last.c,v 1.12 1998/12/19 17:38:39 christos Exp $       */
+/*     $NetBSD: last.c,v 1.13 2000/04/14 06:11:08 simonb Exp $ */
 
 /*
  * Copyright (c) 1987, 1993, 1994
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)last.c     8.2 (Berkeley) 4/2/94";
 #endif
-__RCSID("$NetBSD: last.c,v 1.12 1998/12/19 17:38:39 christos Exp $");
+__RCSID("$NetBSD: last.c,v 1.13 2000/04/14 06:11:08 simonb Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -103,8 +103,6 @@
        int argc;
        char *argv[];
 {
-       extern int optind;
-       extern char *optarg;
        int ch;
        char *p;
 
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/lock/lock.c
--- a/usr.bin/lock/lock.c       Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/lock/lock.c       Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.c,v 1.17 1999/06/27 10:00:36 tron Exp $   */
+/*     $NetBSD: lock.c,v 1.18 2000/04/14 06:11:08 simonb Exp $ */
 
 /*
  * Copyright (c) 1980, 1987, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)lock.c     8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: lock.c,v 1.17 1999/06/27 10:00:36 tron Exp $");
+__RCSID("$NetBSD: lock.c,v 1.18 2000/04/14 06:11:08 simonb Exp $");
 #endif /* not lint */
 
 /*
@@ -96,7 +96,6 @@
        int argc;
        char **argv;
 {
-       extern char *optarg;
        struct passwd *pw;
        struct timeval timval;
        struct itimerval ntimer, otimer;
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/make/main.c
--- a/usr.bin/make/main.c       Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/make/main.c       Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.51 2000/02/08 12:43:25 sjg Exp $    */
+/*     $NetBSD: main.c,v 1.52 2000/04/14 06:11:09 simonb Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -39,7 +39,7 @@
  */
 
 #ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: main.c,v 1.51 2000/02/08 12:43:25 sjg Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.52 2000/04/14 06:11:09 simonb Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
@@ -51,7 +51,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.51 2000/02/08 12:43:25 sjg Exp $");
+__RCSID("$NetBSD: main.c,v 1.52 2000/04/14 06:11:09 simonb Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -167,8 +167,6 @@
        int argc;
        char **argv;
 {
-       extern int optind;
-       extern char *optarg;
        char *p;
        int c;
        int forceJobs = 0;
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/netstat/main.c
--- a/usr.bin/netstat/main.c    Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/netstat/main.c    Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.26 2000/02/26 09:55:24 itojun Exp $ */
+/*     $NetBSD: main.c,v 1.27 2000/04/14 06:11:09 simonb Exp $ */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "from: @(#)main.c       8.4 (Berkeley) 3/1/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.26 2000/02/26 09:55:24 itojun Exp $");
+__RCSID("$NetBSD: main.c,v 1.27 2000/04/14 06:11:09 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -305,8 +305,6 @@
        int argc;
        char *argv[];
 {
-       extern char *optarg;
-       extern int optind;
        struct protoent *p;
        struct protox *tp;      /* for printing cblocks & stats */
        int ch;
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/nfsstat/nfsstat.c
--- a/usr.bin/nfsstat/nfsstat.c Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/nfsstat/nfsstat.c Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfsstat.c,v 1.14 1998/07/06 07:50:20 mrg Exp $ */
+/*     $NetBSD: nfsstat.c,v 1.15 2000/04/14 06:11:09 simonb Exp $      */
 
 /*
  * Copyright (c) 1983, 1989, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "from: @(#)nfsstat.c    8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: nfsstat.c,v 1.14 1998/07/06 07:50:20 mrg Exp $");
+__RCSID("$NetBSD: nfsstat.c,v 1.15 2000/04/14 06:11:09 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -93,8 +93,6 @@
        int argc;
        char **argv;
 {
-       extern int optind;
-       extern char *optarg;
        u_int interval;
        int ch;
        char *memf, *nlistf;
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/passwd/passwd.c
--- a/usr.bin/passwd/passwd.c   Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/passwd/passwd.c   Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: passwd.c,v 1.17 2000/03/01 12:46:36 joda Exp $ */
+/*     $NetBSD: passwd.c,v 1.18 2000/04/14 06:11:09 simonb Exp $       */
 
 /*
  * Copyright (c) 1988, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "from: @(#)passwd.c    8.3 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: passwd.c,v 1.17 2000/03/01 12:46:36 joda Exp $");
+__RCSID("$NetBSD: passwd.c,v 1.18 2000/04/14 06:11:09 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -106,7 +106,6 @@
        int argc;
        char **argv;
 {
-       extern int optind;
        int ch;
        char *username;
        char optstring[64];  /* if we ever get more than 64 args, shoot me. */
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/rup/rup.c
--- a/usr.bin/rup/rup.c Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/rup/rup.c Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rup.c,v 1.19 2000/03/08 12:10:28 jdolecek Exp $        */
+/*     $NetBSD: rup.c,v 1.20 2000/04/14 06:11:09 simonb Exp $  */
 
 /*-
  * Copyright (c) 1993, John Brezak
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rup.c,v 1.19 2000/03/08 12:10:28 jdolecek Exp $");
+__RCSID("$NetBSD: rup.c,v 1.20 2000/04/14 06:11:09 simonb Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -316,7 +316,6 @@
        char *argv[];
 {
        int ch;
-       extern int optind;
 
        sort_type = SORT_NONE;
        while ((ch = getopt(argc, argv, "dhlt")) != -1)
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/rusers/rusers.c
--- a/usr.bin/rusers/rusers.c   Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/rusers/rusers.c   Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rusers.c,v 1.16 1998/07/03 18:35:35 hubertf Exp $      */
+/*     $NetBSD: rusers.c,v 1.17 2000/04/14 06:11:10 simonb Exp $       */
 
 /*-
  *  Copyright (c) 1993 John Brezak
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rusers.c,v 1.16 1998/07/03 18:35:35 hubertf Exp $");
+__RCSID("$NetBSD: rusers.c,v 1.17 2000/04/14 06:11:10 simonb Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -243,7 +243,6 @@
 main(int argc, char *argv[])
 {
        int ch;
-       extern int optind;
        
        while ((ch = getopt(argc, argv, "al")) != -1)
                switch (ch) {
diff -r 9d3dbd5aede3 -r 7109e2992f84 usr.bin/skey/skey.c
--- a/usr.bin/skey/skey.c       Fri Apr 14 06:07:14 2000 +0000
+++ b/usr.bin/skey/skey.c       Fri Apr 14 06:11:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: skey.c,v 1.8 1999/02/02 12:36:09 christos Exp $        */
+/*     $NetBSD: skey.c,v 1.9 2000/04/14 06:11:10 simonb Exp $  */
 
 /*
  * S/KEY v1.1b (skey.c)
@@ -23,7 +23,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint



Home | Main Index | Thread Index | Old Index