]> granicus.if.org Git - graphviz/commitdiff
xlib plugin: swap a boolean for a C99 bool for 'initialized'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Oct 2021 17:55:29 +0000 (10:55 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Oct 2021 19:26:19 +0000 (12:26 -0700)
plugin/xlib/gvdevice_xlib.c

index d41d83493b442a2302a50c0bf818d5df3e7f01f3..97cd1427eeeebf199a294760520eff0453805326 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "config.h"
 
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -445,7 +446,7 @@ static int handle_file_events(GVJ_t *job, int inotify_fd)
 }
 #endif
 
-static boolean initialized;
+static bool initialized;
 
 static void xlib_initialize(GVJ_t *firstjob)
 {
@@ -485,7 +486,7 @@ static void xlib_initialize(GVJ_t *firstjob)
     firstjob->device_dpi.y = DisplayHeight(dpy, scr) * 25.4 / DisplayHeightMM(dpy, scr);
     firstjob->device_sets_dpi = TRUE;
 
-    initialized = TRUE;
+    initialized = true;
 }
 
 static void xlib_finalize(GVJ_t *firstjob)