Author: biurrun Date: Thu Oct 29 19:33:24 2009 New Revision: 1435 Log: Mark functions only used within a file as static. Modified: trunk/tools/iwlist_parser.c trunk/tools/msleep.c Modified: trunk/tools/iwlist_parser.c ============================================================================== --- trunk/tools/iwlist_parser.c Thu Oct 29 19:32:07 2009 (r1434) +++ trunk/tools/iwlist_parser.c Thu Oct 29 19:33:24 2009 (r1435) @@ -50,7 +50,7 @@ // Save results to arrays. // @param strBuffer - String to be parsed. // -void parseString(char * strBuffer) +static void parseString(char * strBuffer) { // this is so ugly, but the quickest way in this %^*&% pToken-format bool bTokenWasSignal = false; @@ -187,7 +187,7 @@ // Reads from given stream (file or stdin) until linefeed is reached // @param strFilename - Filename of the file to be opened. Empty if fileflag is false. // -void parseFromFile(char * strFilename) +static void parseFromFile(char * strFilename) { char buffer[LINE_BUFFER_LENGTH]; FILE * pFile = 0; @@ -215,7 +215,7 @@ // Go (linear) through arrays and remember signal strength. // Look only at specified SSID's if essidflag is set // -void printBestAP(void) +static void printBestAP(void) { //Select best SignalStrength for given AP (or all AP's) int iIndexCell = 0; @@ -262,7 +262,7 @@ // Log a given message to a file (currently a fixed one). // @param message - The message to be logged // -void logEvent(const char * message) +static void logEvent(const char * message) { FILE * pLogFile = 0; char strTime[32]; Modified: trunk/tools/msleep.c ============================================================================== --- trunk/tools/msleep.c Thu Oct 29 19:32:07 2009 (r1434) +++ trunk/tools/msleep.c Thu Oct 29 19:33:24 2009 (r1435) @@ -19,7 +19,7 @@ #define DEFAULT_MSECS 100000 #define USEC_TO_MSEC 1000 -unsigned int get_msecs_from_args(const int argc, char *argv[]) +static unsigned int get_msecs_from_args(const int argc, char *argv[]) { int c = 0; unsigned int msecs = DEFAULT_MSECS;