diff options
author | schwarze <> | 2020-02-14 19:17:34 +0000 |
---|---|---|
committer | schwarze <> | 2020-02-14 19:17:34 +0000 |
commit | 810325fb62e0d63aa8604db5bebb903b159b496a (patch) | |
tree | 9c095c85e276ea1a43705da6923fa5bf332c7e67 /src/regress/lib/libc/regex/main.c | |
parent | 4970e0155d7f95c3e44ba85c3286257e319af0bb (diff) | |
download | openbsd-810325fb62e0d63aa8604db5bebb903b159b496a.tar.gz openbsd-810325fb62e0d63aa8604db5bebb903b159b496a.tar.bz2 openbsd-810325fb62e0d63aa8604db5bebb903b159b496a.zip |
no need to declare "extern optarg" and "extern optind"
when <unistd.h> is included;
patch from Jan Stary <hans at stare dot cz>;
OK millert
Diffstat (limited to 'src/regress/lib/libc/regex/main.c')
-rw-r--r-- | src/regress/lib/libc/regex/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/regress/lib/libc/regex/main.c b/src/regress/lib/libc/regex/main.c index d6787d88fc..50c3f7589e 100644 --- a/src/regress/lib/libc/regex/main.c +++ b/src/regress/lib/libc/regex/main.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: main.c,v 1.10 2016/07/13 06:17:11 guenther Exp $ */ | 1 | /* $OpenBSD: main.c,v 1.11 2020/02/14 19:17:34 schwarze Exp $ */ |
2 | /* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */ | 2 | /* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */ |
3 | 3 | ||
4 | #include <stdio.h> | 4 | #include <stdio.h> |
@@ -41,8 +41,6 @@ main(int argc, char *argv[]) | |||
41 | int c; | 41 | int c; |
42 | int errflg = 0; | 42 | int errflg = 0; |
43 | register int i; | 43 | register int i; |
44 | extern int optind; | ||
45 | extern char *optarg; | ||
46 | 44 | ||
47 | progname = argv[0]; | 45 | progname = argv[0]; |
48 | 46 | ||