Date: Mon, 10 Jun 2002 03:41:56 +0300 From: Giorgos Keramidas <keramida@FreeBSD.org> To: audit@FreeBSD.org Subject: nested extern shuffle in makewhatis.c Message-ID: <20020610004156.GA10607@hades.hell.gr>
next in thread | raw e-mail | index | archive | help
One of the warnings printed by WARNS=6 for makewhatis is about the declaration of optind and optarg as extern. Any objections to me removing these as shown below? - Giorgos %%% Index: makewhatis.c =================================================================== RCS file: /home/ncvs/src/usr.bin/makewhatis/makewhatis.c,v retrieving revision 1.5 diff -u -r1.5 makewhatis.c --- makewhatis.c 22 May 2002 11:08:41 -0000 1.5 +++ makewhatis.c 7 Jun 2002 01:23:18 -0000 @@ -960,8 +960,6 @@ main(int argc, char **argv) { int opt; - extern int optind; - extern char *optarg; FILE *fp = NULL; while ((opt = getopt(argc, argv, "ai:n:o:vL")) != -1) { %%% To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020610004156.GA10607>