Skip to content

Commit

Permalink
Remove "Warning: file \"%s\" unreadable". It was introduced with revi…
Browse files Browse the repository at this point in the history
…sion

44599 and turned less than useful ever since fortunes-o.dat got removed.
Running "fortunes -a" is enough to always see it for fortunes-o.dat.
Since we compile with debugging enabled, the removal is easily compensated
for by running "fortune -D -D".
  • Loading branch information
Marcel Moolenaar authored and Marcel Moolenaar committed Dec 7, 2013
1 parent 3a3dd1f commit 3dc31d3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions games/fortune/fortune/fortune.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,6 @@ is_fortfile(const char *file, char **datp, char **posp, int check_for_offend)
strcat(datfile, ".dat");
if (access(datfile, R_OK) < 0) {
DPRINTF(2, (stderr, "FALSE (no readable \".dat\" file)\n"));
#ifdef DEBUG
if (Debug < 2)
DPRINTF(0, (stderr, "Warning: file \"%s\" unreadable\n", datfile));
#endif
free(datfile);
return (FALSE);
}
Expand Down

0 comments on commit 3dc31d3

Please sign in to comment.