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/db/dbtest.c | |
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/db/dbtest.c')
-rw-r--r-- | src/regress/lib/libc/db/dbtest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/regress/lib/libc/db/dbtest.c b/src/regress/lib/libc/db/dbtest.c index 6a79e4c187..57bb900f7a 100644 --- a/src/regress/lib/libc/db/dbtest.c +++ b/src/regress/lib/libc/db/dbtest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dbtest.c,v 1.16 2017/07/27 15:08:37 bluhm Exp $ */ | 1 | /* $OpenBSD: dbtest.c,v 1.17 2020/02/14 19:17:33 schwarze Exp $ */ |
2 | /* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ | 2 | /* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -76,8 +76,6 @@ int XXlineno; /* Fast breakpoint for gdb. */ | |||
76 | int | 76 | int |
77 | main(int argc, char *argv[]) | 77 | main(int argc, char *argv[]) |
78 | { | 78 | { |
79 | extern int optind; | ||
80 | extern char *optarg; | ||
81 | enum S command, state; | 79 | enum S command, state; |
82 | DB *dbp; | 80 | DB *dbp; |
83 | DBT data, key, keydata; | 81 | DBT data, key, keydata; |