/[bison]/bison/lib/bitset_stats.c
ViewVC logotype

Diff of /bison/lib/bitset_stats.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by eggert, Wed Oct 16 06:20:44 2002 UTC revision 1.7 by eggert, Wed Oct 30 06:17:52 2002 UTC
# Line 261  bitset_stats_read (const char *filename) Line 261  bitset_stats_read (const char *filename)
261            else            else
262              fprintf (stderr, _("Bad stats file size.\n"));              fprintf (stderr, _("Bad stats file size.\n"));
263          }          }
264        fclose (file);        if (fclose (file) != 0)
265            perror (_("Could not read stats file."));
266      }      }
267    bitset_stats_info_data.runs++;    bitset_stats_info_data.runs++;
268  }  }
# Line 285  bitset_stats_write (const char *filename Line 286  bitset_stats_write (const char *filename
286        if (fwrite (&bitset_stats_info_data, sizeof (bitset_stats_info_data),        if (fwrite (&bitset_stats_info_data, sizeof (bitset_stats_info_data),
287                    1, file) != 1)                    1, file) != 1)
288          perror (_("Could not write stats file."));          perror (_("Could not write stats file."));
289        fclose (file);        if (fclose (file) != 0)
290            perror (_("Could not write stats file."));
291      }      }
292    else    else
293      perror (_("Could not open stats file for writing."));      perror (_("Could not open stats file for writing."));

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26