nested extern shuffle in makewhatis.c
Giorgos Keramidas <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.audit |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected]
with "unsubscribe freebsd-audit" in the body of the message