diff options
author | schwarze <schwarze@openbsd.org> | 2020-02-14 19:17:33 +0000 |
---|---|---|
committer | schwarze <schwarze@openbsd.org> | 2020-02-14 19:17:33 +0000 |
commit | d167610cf60d496fc93800f73dde5a625ceae8c3 (patch) | |
tree | aee2a97f2681d75806c81fa410727538eedf06bc /games/fortune | |
parent | Let's all agree to call our scsi_adapter variable '<dev>_switch'. (diff) | |
download | wireguard-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.c | 4 |
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) { |