From 62855ffe327689a9bd3dfcb00322f27fed99d318 Mon Sep 17 00:00:00 2001 From: simonb Date: Fri, 14 Apr 2000 05:58:01 +0000 Subject: Don't declare 'extern opt*' getopt variables. --- arithmetic/arithmetic.c | 6 ++---- fortune/fortune/fortune.c | 6 ++---- hunt/hunt/hunt.c | 6 ++---- hunt/huntd/driver.c | 6 ++---- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c index d06776b8..a15ead5a 100644 --- a/arithmetic/arithmetic.c +++ b/arithmetic/arithmetic.c @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #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 @@ main(argc, argv) int argc; char **argv; { - extern char *optarg; - extern int optind; int ch, cnt; /* Revoke setgid privileges */ diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c index 559039c7..2cc318ce 100644 --- a/fortune/fortune/fortune.c +++ b/fortune/fortune/fortune.c @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\ #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 @@ getargs(argc, argv) # ifndef NO_REGEX char *pat = NULL; # endif /* NO_REGEX */ - extern char *optarg; - extern int optind; int ch; ignore_case = FALSE; diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c index 8726bdae..32d391fb 100644 --- a/hunt/hunt/hunt.c +++ b/hunt/hunt/hunt.c @@ -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 #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 @@ -106,8 +106,6 @@ main(ac, av) 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 --git a/hunt/huntd/driver.c b/hunt/huntd/driver.c index 4b06af91..fdfdfe46 100644 --- a/hunt/huntd/driver.c +++ b/hunt/huntd/driver.c @@ -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 #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 @@ -72,8 +72,6 @@ main(ac, av, ep) 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 }; -- cgit v1.2.3-56-ge451