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

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 15 Apr 2010 13:16:22 +0200

Author: biurrun
Date: Thu Apr 15 13:16:22 2010
New Revision: 2281

Log:
cosmetics: Simplify one if condition.

Modified:
   trunk/tools/iwlist_parser.c

Modified: trunk/tools/iwlist_parser.c
==============================================================================
--- trunk/tools/iwlist_parser.c Thu Apr 15 12:51:56 2010        (r2280)
+++ trunk/tools/iwlist_parser.c Thu Apr 15 13:16:22 2010        (r2281)
@@ -215,7 +215,7 @@
             continue;
         }
 
-        if (strncmp(strEssid[i], strSelectedESSID, strlen(strSelectedESSID)) 
== 0
+        if (!strncmp(strEssid[i], strSelectedESSID, strlen(strSelectedESSID))
             || !essidflag) {
             dbg_printf("MAC: %s\nESSID: %s\nQuality: %d\nSignalStrength: %d\n",
                        strMAC[i], strEssid[i], iQuality[i], 
iSignalStrength[i]);

Other related posts:

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