Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin Don't declare 'extern opt*' getopt variables.
details: https://anonhg.NetBSD.org/src/rev/7d9405cdd169
branches: trunk
changeset: 484873:7d9405cdd169
user: simonb <simonb%NetBSD.org@localhost>
date: Fri Apr 14 05:52:56 2000 +0000
description:
Don't declare 'extern opt*' getopt variables.
diffstat:
bin/cat/cat.c | 5 ++---
bin/date/date.c | 6 ++----
bin/pax/getoldopt.c | 6 ++----
bin/pax/options.c | 6 ++----
bin/sh/histedit.c | 6 ++----
5 files changed, 10 insertions(+), 19 deletions(-)
diffs (134 lines):
diff -r f443760d1985 -r 7d9405cdd169 bin/cat/cat.c
--- a/bin/cat/cat.c Fri Apr 14 04:12:18 2000 +0000
+++ b/bin/cat/cat.c Fri Apr 14 05:52:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cat.c,v 1.22 2000/01/15 01:13:15 christos Exp $ */
+/* $NetBSD: cat.c,v 1.23 2000/04/14 05:52:56 simonb Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
#else
-__RCSID("$NetBSD: cat.c,v 1.22 2000/01/15 01:13:15 christos Exp $");
+__RCSID("$NetBSD: cat.c,v 1.23 2000/04/14 05:52:56 simonb Exp $");
#endif
#endif /* not lint */
@@ -79,7 +79,6 @@
int argc;
char *argv[];
{
- extern int optind;
int ch;
(void)setlocale(LC_ALL, "");
diff -r f443760d1985 -r 7d9405cdd169 bin/date/date.c
--- a/bin/date/date.c Fri Apr 14 04:12:18 2000 +0000
+++ b/bin/date/date.c Fri Apr 14 05:52:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: date.c,v 1.29 2000/01/04 14:15:09 kleink Exp $ */
+/* $NetBSD: date.c,v 1.30 2000/04/14 05:52:57 simonb Exp $ */
/*
* Copyright (c) 1985, 1987, 1988, 1993
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: date.c,v 1.29 2000/01/04 14:15:09 kleink Exp $");
+__RCSID("$NetBSD: date.c,v 1.30 2000/04/14 05:52:57 simonb Exp $");
#endif
#endif /* not lint */
@@ -80,8 +80,6 @@
int argc;
char *argv[];
{
- extern int optind;
- extern char *optarg;
int ch, rflag;
char *format, buf[1024];
diff -r f443760d1985 -r 7d9405cdd169 bin/pax/getoldopt.c
--- a/bin/pax/getoldopt.c Fri Apr 14 04:12:18 2000 +0000
+++ b/bin/pax/getoldopt.c Fri Apr 14 05:52:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getoldopt.c,v 1.8 2000/02/17 03:12:25 itohy Exp $ */
+/* $NetBSD: getoldopt.c,v 1.9 2000/04/14 05:52:58 simonb Exp $ */
/*
* Plug-compatible replacement for getopt() for parsing tar-like
@@ -11,7 +11,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: getoldopt.c,v 1.8 2000/02/17 03:12:25 itohy Exp $");
+__RCSID("$NetBSD: getoldopt.c,v 1.9 2000/04/14 05:52:58 simonb Exp $");
#endif /* not lint */
#include <stdio.h>
@@ -27,8 +27,6 @@
char **argv;
char *optstring;
{
- extern char *optarg; /* Points to next arg */
- extern int optind; /* Global argv index */
static char *key; /* Points to next keyletter */
static char use_getopt; /* !=0 if argv[1][0] was '-' */
char c;
diff -r f443760d1985 -r 7d9405cdd169 bin/pax/options.c
--- a/bin/pax/options.c Fri Apr 14 04:12:18 2000 +0000
+++ b/bin/pax/options.c Fri Apr 14 05:52:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: options.c,v 1.27 2000/03/30 17:53:04 thorpej Exp $ */
+/* $NetBSD: options.c,v 1.28 2000/04/14 05:52:58 simonb Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
#else
-__RCSID("$NetBSD: options.c,v 1.27 2000/03/30 17:53:04 thorpej Exp $");
+__RCSID("$NetBSD: options.c,v 1.28 2000/04/14 05:52:58 simonb Exp $");
#endif
#endif /* not lint */
@@ -203,8 +203,6 @@
unsigned int bflg = 0;
char *pt;
FSUB tmp;
- extern char *optarg;
- extern int optind;
/*
* process option flags
diff -r f443760d1985 -r 7d9405cdd169 bin/sh/histedit.c
--- a/bin/sh/histedit.c Fri Apr 14 04:12:18 2000 +0000
+++ b/bin/sh/histedit.c Fri Apr 14 05:52:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: histedit.c,v 1.22 2000/01/27 23:39:40 christos Exp $ */
+/* $NetBSD: histedit.c,v 1.23 2000/04/14 05:52:58 simonb Exp $ */
/*-
* Copyright (c) 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: histedit.c,v 1.22 2000/01/27 23:39:40 christos Exp $");
+__RCSID("$NetBSD: histedit.c,v 1.23 2000/04/14 05:52:58 simonb Exp $");
#endif
#endif /* not lint */
@@ -183,8 +183,6 @@
int argc;
char **argv;
{
- extern char *optarg;
- extern int optind, optopt, optreset;
int ch;
const char *editor = NULL;
HistEvent he;
Home |
Main Index |
Thread Index |
Old Index