diff options
author | schwarze <> | 2020-02-14 19:17:34 +0000 |
---|---|---|
committer | schwarze <> | 2020-02-14 19:17:34 +0000 |
commit | 0259b47cba06cecb3f81f8e74fbedf162627403a (patch) | |
tree | 9c095c85e276ea1a43705da6923fa5bf332c7e67 /src/regress/lib/libc/regex | |
parent | c8e726a25b40023308ad315f3bb0959bb478bf42 (diff) | |
download | openbsd-0259b47cba06cecb3f81f8e74fbedf162627403a.tar.gz openbsd-0259b47cba06cecb3f81f8e74fbedf162627403a.tar.bz2 openbsd-0259b47cba06cecb3f81f8e74fbedf162627403a.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')
-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 | ||