Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/3faabc338514
branches:  trunk
changeset: 484875:3faabc338514
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Apr 14 05:58:01 2000 +0000

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

diffstat:

 games/arithmetic/arithmetic.c    |  6 ++----
 games/fortune/fortune/fortune.c  |  6 ++----
 games/hunt/hunt/hunt.c           |  6 ++----
 games/hunt/huntd/driver.c        |  6 ++----
 sbin/fsck_lfs/main.c             |  4 +---
 sbin/lmcctl/lmcctl.c             |  5 +----
 sbin/mount_ext2fs/mount_ext2fs.c |  5 ++---
 sbin/mount_ffs/mount_ffs.c       |  5 ++---
 sbin/raidctl/raidctl.c           |  4 +---
 sbin/sysctl/pathconf.c           |  6 ++----
 sbin/sysctl/sysctl.c             |  6 ++----
 11 files changed, 19 insertions(+), 40 deletions(-)

diffs (269 lines):

diff -r a8699e82e5c5 -r 3faabc338514 games/arithmetic/arithmetic.c
--- a/games/arithmetic/arithmetic.c     Fri Apr 14 05:54:20 2000 +0000
+++ b/games/arithmetic/arithmetic.c     Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arithmetic.c,v 1.13 1999/07/17 19:11:30 hubertf Exp $  */
+/*     $NetBSD: arithmetic.c,v 1.14 2000/04/14 05:58:01 simonb 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.13 1999/07/17 19:11:30 hubertf Exp $");
+__RCSID("$NetBSD: arithmetic.c,v 1.14 2000/04/14 05:58:01 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -118,8 +118,6 @@
        int argc;
        char **argv;
 {
-       extern char *optarg;
-       extern int optind;
        int ch, cnt;
 
        /* Revoke setgid privileges */
diff -r a8699e82e5c5 -r 3faabc338514 games/fortune/fortune/fortune.c
--- a/games/fortune/fortune/fortune.c   Fri Apr 14 05:54:20 2000 +0000
+++ b/games/fortune/fortune/fortune.c   Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fortune.c,v 1.22 1999/11/09 15:06:33 drochner Exp $    */
+/*     $NetBSD: fortune.c,v 1.23 2000/04/14 05:58:02 simonb 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.22 1999/11/09 15:06:33 drochner Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.23 2000/04/14 05:58:02 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -316,8 +316,6 @@
 # ifndef NO_REGEX
        char    *pat = NULL;
 # endif        /* NO_REGEX */
-       extern char *optarg;
-       extern int optind;
        int ch;
 
        ignore_case = FALSE;
diff -r a8699e82e5c5 -r 3faabc338514 games/hunt/hunt/hunt.c
--- a/games/hunt/hunt/hunt.c    Fri Apr 14 05:54:20 2000 +0000
+++ b/games/hunt/hunt/hunt.c    Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hunt.c,v 1.10 2000/03/02 18:22:31 kleink Exp $ */
+/*     $NetBSD: hunt.c,v 1.11 2000/04/14 05:58:03 simonb Exp $ */
 /*
  *  Hunt
  *  Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hunt.c,v 1.10 2000/03/02 18:22:31 kleink Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.11 2000/04/14 05:58:03 simonb Exp $");
 #endif /* not lint */
 
 # include      <sys/param.h>
@@ -106,8 +106,6 @@
        char            *term;
        int             c;
        extern int      Otto_mode;
-       extern int      optind;
-       extern char     *optarg;
        long            enter_status;
 
        enter_status = env_init((long) Q_CLOAK);
diff -r a8699e82e5c5 -r 3faabc338514 games/hunt/huntd/driver.c
--- a/games/hunt/huntd/driver.c Fri Apr 14 05:54:20 2000 +0000
+++ b/games/hunt/huntd/driver.c Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $ */
+/*     $NetBSD: driver.c,v 1.6 2000/04/14 05:58:03 simonb Exp $        */
 /*
  *  Hunt
  *  Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $");
+__RCSID("$NetBSD: driver.c,v 1.6 2000/04/14 05:58:03 simonb Exp $");
 #endif /* not lint */
 
 # include      <sys/ioctl.h>
@@ -72,8 +72,6 @@
        static fd_set   read_fds;
        static FLAG     first = TRUE;
        static FLAG     server = FALSE;
-       extern int      optind;
-       extern char     *optarg;
        int             c;
        static struct timeval   linger = {      90, 0   };
 
diff -r a8699e82e5c5 -r 3faabc338514 sbin/fsck_lfs/main.c
--- a/sbin/fsck_lfs/main.c      Fri Apr 14 05:54:20 2000 +0000
+++ b/sbin/fsck_lfs/main.c      Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.2 1999/07/03 19:55:03 kleink Exp $  */
+/*     $NetBSD: main.c,v 1.3 2000/04/14 06:03:38 simonb Exp $  */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -74,8 +74,6 @@
 {
        int ch;
        int ret = 0;
-       extern char *optarg;
-       extern int optind;
 #ifndef DEBUG_IFILE
         char *optstring = "b:C:dm:npy";
 #else
diff -r a8699e82e5c5 -r 3faabc338514 sbin/lmcctl/lmcctl.c
--- a/sbin/lmcctl/lmcctl.c      Fri Apr 14 05:54:20 2000 +0000
+++ b/sbin/lmcctl/lmcctl.c      Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lmcctl.c,v 1.1 1999/03/25 04:05:37 explorer Exp $      */
+/*     $NetBSD: lmcctl.c,v 1.2 2000/04/14 06:03:39 simonb Exp $        */
 
 /*-
  * Copyright (c) 1997-1999 LAN Media Corporation (LMC)
@@ -55,9 +55,6 @@
 
 #include "extern.h"
 
-extern char *optarg;
-extern int optind, opterr, optopt;
-
 void lmc_av9110_freq(u_int32_t, lmc_av9110_t *);
 static void dumpdata(char *, lmc_ctl_t *);
 
diff -r a8699e82e5c5 -r 3faabc338514 sbin/mount_ext2fs/mount_ext2fs.c
--- a/sbin/mount_ext2fs/mount_ext2fs.c  Fri Apr 14 05:54:20 2000 +0000
+++ b/sbin/mount_ext2fs/mount_ext2fs.c  Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount_ext2fs.c,v 1.6 1998/12/02 16:15:10 kenh Exp $    */
+/*     $NetBSD: mount_ext2fs.c,v 1.7 2000/04/14 06:03:39 simonb Exp $  */
 
 /*-
  * Copyright (c) 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)mount_ufs.c        8.4 (Berkeley) 4/26/95";
 #else
-__RCSID("$NetBSD: mount_ext2fs.c,v 1.6 1998/12/02 16:15:10 kenh Exp $");
+__RCSID("$NetBSD: mount_ext2fs.c,v 1.7 2000/04/14 06:03:39 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -80,7 +80,6 @@
        int argc;
        char *argv[];
 {
-       extern int optreset;
        struct ufs_args args;           /* XXX ffs_args */
        int ch, mntflags;
        char *fs_name;
diff -r a8699e82e5c5 -r 3faabc338514 sbin/mount_ffs/mount_ffs.c
--- a/sbin/mount_ffs/mount_ffs.c        Fri Apr 14 05:54:20 2000 +0000
+++ b/sbin/mount_ffs/mount_ffs.c        Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount_ffs.c,v 1.9 1998/12/01 23:20:43 kenh Exp $       */
+/*     $NetBSD: mount_ffs.c,v 1.10 2000/04/14 06:03:40 simonb Exp $    */
 
 /*-
  * Copyright (c) 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)mount_ufs.c        8.4 (Berkeley) 4/26/95";
 #else
-__RCSID("$NetBSD: mount_ffs.c,v 1.9 1998/12/01 23:20:43 kenh Exp $");
+__RCSID("$NetBSD: mount_ffs.c,v 1.10 2000/04/14 06:03:40 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -81,7 +81,6 @@
        int argc;
        char *argv[];
 {
-       extern int optreset;
        struct ufs_args args;
        int ch, mntflags;
        char *fs_name;
diff -r a8699e82e5c5 -r 3faabc338514 sbin/raidctl/raidctl.c
--- a/sbin/raidctl/raidctl.c    Fri Apr 14 05:54:20 2000 +0000
+++ b/sbin/raidctl/raidctl.c    Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: raidctl.c,v 1.15 2000/03/23 14:50:36 oster Exp $   */
+/*      $NetBSD: raidctl.c,v 1.16 2000/04/14 06:03:40 simonb Exp $   */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -93,8 +93,6 @@
        int argc;
        char *argv[];
 {
-       extern char *optarg;
-       extern int optind;
        int ch;
        int num_options;
        unsigned long action;
diff -r a8699e82e5c5 -r 3faabc338514 sbin/sysctl/pathconf.c
--- a/sbin/sysctl/pathconf.c    Fri Apr 14 05:54:20 2000 +0000
+++ b/sbin/sysctl/pathconf.c    Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pathconf.c,v 1.4 2000/01/17 02:31:14 itojun Exp $      */
+/*     $NetBSD: pathconf.c,v 1.5 2000/04/14 06:03:40 simonb Exp $      */
 
 /*
  * Copyright (c) 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)pathconf.c 8.1 (Berkeley) 6/6/93";
 #else
-static char rcsid[] = "$NetBSD: pathconf.c,v 1.4 2000/01/17 02:31:14 itojun Exp $";
+static char rcsid[] = "$NetBSD: pathconf.c,v 1.5 2000/04/14 06:03:40 simonb Exp $";
 #endif
 #endif /* not lint */
 
@@ -86,8 +86,6 @@
        int argc;
        char *argv[];
 {
-       extern char *optarg;
-       extern int optind;
        char *path;
        int ch;
 
diff -r a8699e82e5c5 -r 3faabc338514 sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c      Fri Apr 14 05:54:20 2000 +0000
+++ b/sbin/sysctl/sysctl.c      Fri Apr 14 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.29 2000/04/08 23:18:27 soren Exp $        */
+/*     $NetBSD: sysctl.c,v 1.30 2000/04/14 06:03:40 simonb Exp $       */
 
 /*
  * Copyright (c) 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.29 2000/04/08 23:18:27 soren Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.30 2000/04/14 06:03:40 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -188,8 +188,6 @@
        int argc;
        char *argv[];
 {
-       extern char *optarg;
-       extern int optind;
        char *fn = NULL;
        int ch, lvl1;
 



Home | Main Index | Thread Index | Old Index