Author: eadler
Date: Sun Nov  4 15:15:43 2012
New Revision: 242576
URL: http://svn.freebsd.org/changeset/base/242576

Log:
  Prefer the use of stdbool to custom defines.
  
  Approved by:  cperciva (from discussion)
  MFC after:    3 days

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

Modified: head/games/fortune/fortune/fortune.c
==============================================================================
--- head/games/fortune/fortune/fortune.c        Sun Nov  4 14:50:08 2012        
(r242575)
+++ head/games/fortune/fortune/fortune.c        Sun Nov  4 15:15:43 2012        
(r242576)
@@ -53,6 +53,7 @@ __FBSDID("$FreeBSD$");
 #include <fcntl.h>
 #include <locale.h>
 #include <regex.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -62,9 +63,8 @@ __FBSDID("$FreeBSD$");
 #include "strfile.h"
 #include "pathnames.h"
 
-#define        TRUE    1
-#define        FALSE   0
-#define        bool    short
+#define        TRUE    true
+#define        FALSE   false
 
 #define        MINW    6               /* minimum wait if desired */
 #define        CPERS   20              /* # of chars for each sec */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to