svn commit: r259057 - head/games/fortune/fortune

Marcel Moolenaar marcel at FreeBSD.org
Sat Dec 7 02:20:23 UTC 2013


Author: marcel
Date: Sat Dec  7 02:20:22 2013
New Revision: 259057
URL: http://svnweb.freebsd.org/changeset/base/259057

Log:
  Remove "Warning: file \"%s\" unreadable". It was introduced with revision
  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".

Modified:
  head/games/fortune/fortune/fortune.c

Modified: head/games/fortune/fortune/fortune.c
==============================================================================
--- head/games/fortune/fortune/fortune.c	Sat Dec  7 01:35:18 2013	(r259056)
+++ head/games/fortune/fortune/fortune.c	Sat Dec  7 02:20:22 2013	(r259057)
@@ -806,10 +806,6 @@ is_fortfile(const char *file, char **dat
 	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);
 	}


More information about the svn-src-head mailing list