]> granicus.if.org Git - graphviz/commitdiff
glitz_finalize: use a C99 bool for 'watching_p' instead of a boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 27 Dec 2021 03:08:46 +0000 (19:08 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 5 Jan 2022 16:04:04 +0000 (08:04 -0800)
plugin/glitz/gvdevice_glitz.c

index fd912a33d1df85fb41b07e1fbfcf3b4a1c2e06bd..f00162bdefc49aa1d603237c356694280d6894c3 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "config.h"
 
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -481,7 +482,7 @@ static void glitz_finalize(GVJ_t *firstjob)
     struct timeval timeout;
 #ifdef HAVE_SYS_INOTIFY_H
     int wd=0;
-    boolean watching_p = FALSE;
+    bool watching_p = false;
     static char *dir;
     char *p, *cwd = NULL;
 
@@ -494,7 +495,7 @@ static void glitz_finalize(GVJ_t *firstjob)
     /* test that we have access to the input filename */
     if (firstjob->input_filename && firstjob->graph_index == 0) {
 
-       watching_p = TRUE;
+       watching_p = true;
 
        if (firstjob->input_filename[0] != '/') {
            cwd = getcwd(NULL, 0);