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); }