summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-11-04 15:15:43 +0000
committereadler <eadler@FreeBSD.org>2012-11-04 15:15:43 +0000
commit0b0da0bc2aa8451ebfa7b8769910a04eef1796cb (patch)
tree7d02b9d1782538ac928618ef0081438b5972d569 /games
parent8dd87fbeafa02eafc24091cd792697c50306cf5b (diff)
downloadFreeBSD-src-0b0da0bc2aa8451ebfa7b8769910a04eef1796cb.zip
FreeBSD-src-0b0da0bc2aa8451ebfa7b8769910a04eef1796cb.tar.gz
Prefer the use of stdbool to custom defines.
Approved by: cperciva (from discussion) MFC after: 3 days
Diffstat (limited to 'games')
-rw-r--r--games/fortune/fortune/fortune.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index de85d09..74339f4 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -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 */
OpenPOWER on IntegriCloud