From 4a50d365613f29e98b7dbcb40dffc4a9b1f18d49 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 10 Oct 2021 14:05:09 -0700 Subject: [PATCH] cat_libfile: use a C99 bool for 'use_stdlib' --- lib/common/psusershape.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/common/psusershape.c b/lib/common/psusershape.c index f27121570..9bff9459c 100644 --- a/lib/common/psusershape.c +++ b/lib/common/psusershape.c @@ -17,6 +17,7 @@ #include #include #include +#include static int N_EPSF_files; static Dict_t *EPSF_contents; @@ -146,13 +147,13 @@ void cat_libfile(GVJ_t * job, const char **arglib, const char **stdlib) FILE *fp; const char **s, *bp, *p, *path; int i; - boolean use_stdlib = TRUE; + bool use_stdlib = true; /* check for empty string to turn off stdlib */ if (arglib) { for (i = 0; use_stdlib && ((p = arglib[i])); i++) { if (*p == '\0') - use_stdlib = FALSE; + use_stdlib = false; } } if (use_stdlib) -- 2.40.0