]> granicus.if.org Git - graphviz/commitdiff
lefty: use a C99 bool for 'gmapon'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 Jan 2022 19:59:39 +0000 (11:59 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 20 Jan 2022 02:15:00 +0000 (18:15 -0800)
cmd/lefty/lefty.c

index f9f138b466ab12ee21a263951265c03e517a8c2d..065a198b686b4d1a5152af4ac721a4413ab8d406 100644 (file)
@@ -34,6 +34,7 @@
 #include "gmap2l.h"
 #endif
 
+#include <stdbool.h>
 #ifndef FEATURE_MS
 #include <sys/time.h>
 #  ifdef STATS
@@ -60,7 +61,7 @@
 #endif
 
 #ifdef FEATURE_GMAP
-static int gmapon;
+static bool gmapon;
 #endif
 
 static Grect_t txtcoords = {
@@ -126,7 +127,7 @@ int main (int argc, char **argv) {
     TXTinit (txtcoords);
     GFXinit ();
 #ifdef FEATURE_GMAP
-    gmapon = TRUE, G2Linit ();
+    gmapon = true, G2Linit ();
 #endif
 
     if (exprstr) {