Hi tech@,

Proper bool types for fortune(6) and monop(6).

Index: games/fortune/fortune/fortune.c
===================================================================
RCS file: /cvs/src/games/fortune/fortune/fortune.c,v
retrieving revision 1.55
diff -u -p -r1.55 fortune.c
--- games/fortune/fortune/fortune.c     7 Mar 2016 22:49:45 -0000       1.55
+++ games/fortune/fortune/fortune.c     14 May 2016 10:19:21 -0000
@@ -41,6 +41,7 @@
 #include <err.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -49,8 +50,6 @@
 
 #include "pathnames.h"
 #include "strfile.h"
-
-#define        bool    short
 
 #define        MINW    6               /* minimum wait if desired */
 #define        CPERS   20              /* # of chars for each sec */
Index: games/monop/deck.h
===================================================================
RCS file: /cvs/src/games/monop/deck.h,v
retrieving revision 1.6
diff -u -p -r1.6 deck.h
--- games/monop/deck.h  8 Jan 2016 18:19:47 -0000       1.6
+++ games/monop/deck.h  14 May 2016 10:19:21 -0000
@@ -32,7 +32,7 @@
  *     @(#)deck.h      8.1 (Berkeley) 5/31/93
  */
 
-#define        bool    int8_t
+#include <stdbool.h>
 
 #define        CC_D    deck[0]
 #define        CH_D    deck[1]
Index: games/monop/initdeck.c
===================================================================
RCS file: /cvs/src/games/monop/initdeck.c,v
retrieving revision 1.17
diff -u -p -r1.17 initdeck.c
--- games/monop/initdeck.c      8 Jan 2016 18:20:33 -0000       1.17
+++ games/monop/initdeck.c      14 May 2016 10:19:21 -0000
@@ -51,8 +51,6 @@
 #define        TRUE    1
 #define        FALSE   0
 
-#define        bool    int8_t
-
 char   *infile         = "cards.inp",          /* input file           */
        *outfile        = "cards.pck";          /* "packed" file        */
 
Index: games/monop/monop.h
===================================================================
RCS file: /cvs/src/games/monop/monop.h,v
retrieving revision 1.8
diff -u -p -r1.8 monop.h
--- games/monop/monop.h 8 Jan 2016 18:19:47 -0000       1.8
+++ games/monop/monop.h 14 May 2016 10:19:21 -0000
@@ -37,7 +37,6 @@
 #else
 #define        shrt    char
 #endif
-#define        bool    int8_t
 
 #define        TRUE    (1)
 #define        FALSE   (0)

Reply via email to