Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2012 15:15:43 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242576 - head/games/fortune/fortune
Message-ID:  <201211041515.qA4FFh7c015874@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211041515.qA4FFh7c015874>