From bc4062bb18aea0a207a6548f253569ad526be7b1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 14 Feb 2020 19:17:35 +0000 Subject: no need to declare "extern optarg" and "extern optind" when is included; patch from Jan Stary ; OK millert --- regress/lib/libutil/fmt_scaled/fmt_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'regress/lib/libutil') 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) { -- cgit v1.2.3