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

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Tue, 27 Oct 2009 14:41:58 +0100

Author: tjansen
Date: Tue Oct 27 14:41:58 2009
New Revision: 1317

Log:
Fixed warning:

tools/iwlist_parser.c: In function ‘parseFromFile’:
tools/iwlist_parser.c:137: warning: ignoring return value of ‘fgets’, declared 
with attribute warn_unused_result

Modified:
   trunk/tools/iwlist_parser.c

Modified: trunk/tools/iwlist_parser.c
==============================================================================
--- trunk/tools/iwlist_parser.c Tue Oct 27 14:38:16 2009        (r1316)
+++ trunk/tools/iwlist_parser.c Tue Oct 27 14:41:58 2009        (r1317)
@@ -133,10 +133,9 @@
 
        memset(buffer, 0, LINE_BUFFER_LENGTH);
 
-       while (!feof(pFile)) {
-               fgets(buffer, LINE_BUFFER_LENGTH, pFile);
+       while (fgets(buffer, LINE_BUFFER_LENGTH, pFile))
                parseString(buffer);
-       }
+
        fclose(pFile);
 }
 

Other related posts:

  • » [pisa-src] r1317 - trunk/tools/iwlist_parser.c - Thomas Jansen