[pisa-src] r1428 - trunk/tools/iwlist_parser.c

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 29 Oct 2009 18:01:55 +0100

Author: biurrun
Date: Thu Oct 29 18:01:55 2009
New Revision: 1428

Log:
Remove redundant declarations, fixes the warning:
tools/iwlist_parser.c: In function ‘main’:
tools/iwlist_parser.c:293: error: redundant redeclaration of ‘optarg’
/usr/include/getopt.h:59: error: previous declaration of ‘optarg’ was here
tools/iwlist_parser.c:294: error: redundant redeclaration of ‘optopt’
/usr/include/getopt.h:82: error: previous declaration of ‘optopt’ was here

Modified:
   trunk/tools/iwlist_parser.c

Modified: trunk/tools/iwlist_parser.c
==============================================================================
--- trunk/tools/iwlist_parser.c Thu Oct 29 17:54:00 2009        (r1427)
+++ trunk/tools/iwlist_parser.c Thu Oct 29 18:01:55 2009        (r1428)
@@ -290,9 +290,6 @@
        step  = 1;
        int c = 0;
 
-       extern char *optarg;
-       extern int optopt;
-
        char pESSID[ESSID_LENGTH];
        char strFilename[FILENAME_LENGTH];
 

Other related posts:

  • » [pisa-src] r1428 - trunk/tools/iwlist_parser.c - Diego Biurrun