summaryrefslogtreecommitdiffstats
path: root/games/fortune
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 /games/fortune
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 'games/fortune')
-rw-r--r--games/fortune/strfile/strfile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c
index 76623d0d458..cee8c248c36 100644
--- a/games/fortune/strfile/strfile.c
+++ b/games/fortune/strfile/strfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strfile.c,v 1.29 2017/06/04 13:39:25 fcambus Exp $ */
+/* $OpenBSD: strfile.c,v 1.30 2020/02/14 19:17:33 schwarze Exp $ */
/* $NetBSD: strfile.c,v 1.4 1995/04/24 12:23:09 cgd Exp $ */
/*-
@@ -252,8 +252,6 @@ main(int ac, char *av[])
void
getargs(int argc, char *argv[])
{
- extern char *optarg;
- extern int optind;
int ch;
while ((ch = getopt(argc, argv, "c:hiorsx")) != -1) {