/* Bitset statistics.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
Contributed by Michael Hayes (m.hayes@elec.canterbury.ac.nz).
This program is free software; you can redistribute it and/or modify
else
fprintf (stderr, _("Bad stats file size.\n"));
}
- fclose (file);
+ if (fclose (file) != 0)
+ perror (_("Could not read stats file."));
}
bitset_stats_info_data.runs++;
}
if (fwrite (&bitset_stats_info_data, sizeof (bitset_stats_info_data),
1, file) != 1)
perror (_("Could not write stats file."));
- fclose (file);
+ if (fclose (file) != 0)
+ perror (_("Could not write stats file."));
}
else
perror (_("Could not open stats file for writing."));
bitset_bindex tmp;
bitset_bindex size;
bitset_bindex i;
- enum bitset_type type;
count = BITSET_LIST_ (bset->s.bset, list, num, next);
- type = BITSET_TYPE_ (bset->s.bset);
BITSET_STATS_LISTS_INC (bset->s.bset);
/* Log histogram of number of set bits. */