summaryrefslogtreecommitdiffstats
path: root/regress/lib/libc/regex/main.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2020-02-14 19:17:33 +0000
committerschwarze <schwarze@openbsd.org>2020-02-14 19:17:33 +0000
commitd167610cf60d496fc93800f73dde5a625ceae8c3 (patch)
treeaee2a97f2681d75806c81fa410727538eedf06bc /regress/lib/libc/regex/main.c
parentLet's all agree to call our scsi_adapter variable '<dev>_switch'. (diff)
downloadwireguard-openbsd-d167610cf60d496fc93800f73dde5a625ceae8c3.tar.xz
wireguard-openbsd-d167610cf60d496fc93800f73dde5a625ceae8c3.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 'regress/lib/libc/regex/main.c')
-rw-r--r--regress/lib/libc/regex/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/regress/lib/libc/regex/main.c b/regress/lib/libc/regex/main.c
index d6787d88fc4..50c3f7589e0 100644
--- a/regress/lib/libc/regex/main.c
+++ b/regress/lib/libc/regex/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.10 2016/07/13 06:17:11 guenther Exp $ */
+/* $OpenBSD: main.c,v 1.11 2020/02/14 19:17:34 schwarze Exp $ */
/* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */
#include <stdio.h>
@@ -41,8 +41,6 @@ main(int argc, char *argv[])
int c;
int errflg = 0;
register int i;
- extern int optind;
- extern char *optarg;
progname = argv[0];