[Midnightbsd-cvs] src [8352] trunk/games/fortune/fortune/fortune.c: use stdbool
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 18 14:27:51 EDT 2016
Revision: 8352
http://svnweb.midnightbsd.org/src/?rev=8352
Author: laffer1
Date: 2016-09-18 14:27:51 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
use stdbool
Modified Paths:
--------------
trunk/games/fortune/fortune/fortune.c
Modified: trunk/games/fortune/fortune/fortune.c
===================================================================
--- trunk/games/fortune/fortune/fortune.c 2016-09-18 18:24:46 UTC (rev 8351)
+++ trunk/games/fortune/fortune/fortune.c 2016-09-18 18:27:51 UTC (rev 8352)
@@ -47,7 +47,7 @@
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: src/games/fortune/fortune/fortune.c,v 1.27 2005/02/17 18:06:37 ru Exp $");
-__MBSDID("$MidnightBSD: src/games/fortune/fortune/fortune.c,v 1.2 2007/07/17 10:10:13 laffer1 Exp $");
+__MBSDID("$MidnightBSD$");
# include <sys/stat.h>
# include <sys/endian.h>
@@ -59,6 +59,7 @@
# include <stdio.h>
# include <ctype.h>
# include <stdlib.h>
+# include <stdbool.h>
# include <string.h>
# include <locale.h>
# include <time.h>
@@ -66,9 +67,8 @@
# 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 */
More information about the Midnightbsd-cvs
mailing list