From 2d236aa243150e4aaea5e5489006ffe8957e65c9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 19 Dec 2021 12:04:44 -0800 Subject: [PATCH] findStopColor: [nfc] use a C99 bool return type instead of boolean --- lib/common/emit.c | 6 +++--- lib/common/utils.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index 19bd489ae..78483bbca 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -4128,7 +4128,7 @@ int gvRenderJobs (GVC_t * gvc, graph_t * g) * Note that memory is allocated as a single block stored in clrs[0] and * must be freed by calling function. */ -boolean findStopColor (char* colorlist, char* clrs[2], float* frac) +bool findStopColor (char* colorlist, char* clrs[2], float* frac) { colorsegs_t* segs = NULL; int rv; @@ -4137,7 +4137,7 @@ boolean findStopColor (char* colorlist, char* clrs[2], float* frac) if (rv || segs->numc < 2 || segs->segs[0].color == NULL) { clrs[0] = NULL; if (segs) freeSegs (segs); - return FALSE; + return false; } if (segs->numc > 2) @@ -4160,6 +4160,6 @@ boolean findStopColor (char* colorlist, char* clrs[2], float* frac) *frac = 0; freeSegs (segs); - return TRUE; + return true; } diff --git a/lib/common/utils.h b/lib/common/utils.h index 74628cc43..d6e54c0b7 100644 --- a/lib/common/utils.h +++ b/lib/common/utils.h @@ -91,7 +91,7 @@ UTILS_API boolean mapBool(char *, boolean); UTILS_API boolean mapbool(char *); UTILS_API int maptoken(char *, char **, int *); -UTILS_API boolean findStopColor(char *colorlist, char *clrs[2], float *frac); +UTILS_API bool findStopColor(char *colorlist, char *clrs[2], float *frac); UTILS_API int test_toggle(void); UTILS_API void common_init_node(node_t *n); -- 2.40.0