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

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 16 Nov 2011 17:44:55 +0100

Author: biurrun
Date: Wed Nov 16 17:44:54 2011
New Revision: 2818

Log:
iwlist_parser: Mark global variables only used within the file as static.

Modified:
   trunk/tools/iwlist_parser.c

Modified: trunk/tools/iwlist_parser.c
==============================================================================
--- trunk/tools/iwlist_parser.c Tue Nov 15 22:26:04 2011        (r2817)
+++ trunk/tools/iwlist_parser.c Wed Nov 16 17:44:54 2011        (r2818)
@@ -28,18 +28,18 @@
 
 #define dbg_printf(...) if (debug) {printf(__VA_ARGS__);}
 
-bool essidflag;                         //Look for one SSID only
-bool fileflag;                          //Use a file rather than stdin?
-bool selectByQualityFlag;
-bool debug;
+static bool essidflag;                         //Look for one SSID only
+static bool fileflag;                          //Use a file rather than stdin?
+static bool selectByQualityFlag;
+static bool debug;
 
-char strEssid[MAX_CELLS][ESSID_LENGTH];
-char strMAC[MAX_CELLS][MAC_LENGTH];
-char strSelectedESSID[ESSID_LENGTH];
-int iQuality[MAX_CELLS];
-int iSignalStrength[MAX_CELLS];
-int iCellNumber;
-int step;
+static char strEssid[MAX_CELLS][ESSID_LENGTH];
+static char strMAC[MAX_CELLS][MAC_LENGTH];
+static char strSelectedESSID[ESSID_LENGTH];
+static int iQuality[MAX_CELLS];
+static int iSignalStrength[MAX_CELLS];
+static int iCellNumber;
+static int step;
 
 /* Split given string into tokens (split at spaces).
  * Then analyse tokens for keywords like Cell, Address, Quality and ESSID:
-- 
This is the pisa developer mailing list. Please also subscribe to the main pisa 
list at:
//www.freelists.org/list/pisa

Other related posts:

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