diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-02-14 19:17:35 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-02-14 19:17:35 +0000 |
commit | bc4062bb18aea0a207a6548f253569ad526be7b1 (patch) | |
tree | 2b64c0ad313ddcd984dea2192d436399477a92ed /regress/lib/libutil | |
parent | 3306acf9cb9b6fe591d34780d838f8f88c7f09bb (diff) |
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 'regress/lib/libutil')
-rw-r--r-- | regress/lib/libutil/fmt_scaled/fmt_test.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/regress/lib/libutil/fmt_scaled/fmt_test.c b/regress/lib/libutil/fmt_scaled/fmt_test.c index 947d403440c..fd9d1c81bfb 100644 --- a/regress/lib/libutil/fmt_scaled/fmt_test.c +++ b/regress/lib/libutil/fmt_scaled/fmt_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fmt_test.c,v 1.15 2017/03/16 02:42:31 dtucker Exp $ */ +/* $OpenBSD: fmt_test.c,v 1.16 2020/02/14 19:17:34 schwarze Exp $ */ /* * Combined tests for fmt_scaled and scan_scaled. @@ -36,8 +36,6 @@ __dead static void usage(int stat) int main(int argc, char **argv) { - extern char *optarg; - extern int optind; int i, ch; while ((ch = getopt(argc, argv, "hv")) != -1) { |