Date: Wed, 7 Nov 2012 00:40:01 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r242686 - stable/9/games/fortune/fortune Message-ID: <201211070040.qA70e1R7003604@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Wed Nov 7 00:40:01 2012 New Revision: 242686 URL: http://svnweb.freebsd.org/changeset/base/242686 Log: MFC r242576: Prefer the use of stdbool to custom defines. Approved by: cperciva (implicit) Modified: stable/9/games/fortune/fortune/fortune.c Directory Properties: stable/9/games/fortune/ (props changed) Modified: stable/9/games/fortune/fortune/fortune.c ============================================================================== --- stable/9/games/fortune/fortune/fortune.c Wed Nov 7 00:30:25 2012 (r242685) +++ stable/9/games/fortune/fortune/fortune.c Wed Nov 7 00:40:01 2012 (r242686) @@ -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?201211070040.qA70e1R7003604>