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 | |
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')
-rw-r--r-- | games/fortune/strfile/strfile.c | 4 | ||||
-rw-r--r-- | games/hunt/hunt/hunt.c | 4 | ||||
-rw-r--r-- | games/hunt/huntd/driver.c | 4 | ||||
-rw-r--r-- | games/robots/main.c | 3 |
4 files changed, 4 insertions, 11 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) { diff --git a/games/hunt/hunt/hunt.c b/games/hunt/hunt/hunt.c index f0e3af65eb6..4de62e353a9 100644 --- a/games/hunt/hunt/hunt.c +++ b/games/hunt/hunt/hunt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hunt.c,v 1.22 2017/04/08 22:50:41 gsoares Exp $ */ +/* $OpenBSD: hunt.c,v 1.23 2020/02/14 19:17:33 schwarze Exp $ */ /* $NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -85,8 +85,6 @@ int main(int ac, char **av) { int c; - extern int optind; - extern char *optarg; long enter_status; int option; struct servent *se; diff --git a/games/hunt/huntd/driver.c b/games/hunt/huntd/driver.c index a854f92b88d..2efec81aaab 100644 --- a/games/hunt/huntd/driver.c +++ b/games/hunt/huntd/driver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: driver.c,v 1.29 2017/01/21 08:22:57 krw Exp $ */ +/* $OpenBSD: driver.c,v 1.30 2020/02/14 19:17:33 schwarze Exp $ */ /* $NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -80,8 +80,6 @@ main(int ac, char **av) static fd_set read_fds; static FLAG first = TRUE; static FLAG server = FALSE; - extern int optind; - extern char *optarg; extern char *__progname; int c; static struct timeval linger = { 0, 0 }; diff --git a/games/robots/main.c b/games/robots/main.c index be6ef3151b7..76454474b76 100644 --- a/games/robots/main.c +++ b/games/robots/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.28 2019/06/28 13:32:52 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.29 2020/02/14 19:17:33 schwarze Exp $ */ /* $NetBSD: main.c,v 1.5 1995/04/22 10:08:54 cgd Exp $ */ /* @@ -56,7 +56,6 @@ main(int ac, char *av[]) int score_err = 0; /* hold errno from score file open */ int ch; int ret; - extern int optind; char *home; #ifdef FANCY char *sp; |