]> granicus.if.org Git - graphviz/commitdiff
gvprintpointflist: replace a boolean literal with C99 bool 'true'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 9 Jan 2022 16:50:20 +0000 (08:50 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 10 Jan 2022 15:51:35 +0000 (07:51 -0800)
lib/gvc/gvdevice.c

index 0352baeb547e1c591f161ccf2c8da72f932e6477..4f6b2ebcb10230907495bd686b08e6c668598363 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <ctype.h>
 #include <stdarg.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
 #include <inttypes.h>
@@ -589,7 +590,7 @@ void gvprintpointflist(GVJ_t * job, pointf *p, int n)
 {
     int i = 0;
 
-    while (TRUE) {
+    while (true) {
        gvprintpointf(job, p[i]);
         if (++i >= n) break;
         gvwrite(job, " ", 1);