From: Matthew Fernandez Date: Thu, 11 Nov 2021 01:27:28 +0000 (-0800) Subject: get_int_lsb_first: use a C99 bool return type X-Git-Tag: 2.50.0~30^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b991434a3836becb73d423041958856d69fbb03;p=graphviz get_int_lsb_first: use a C99 bool return type --- diff --git a/lib/gvc/gvusershape.c b/lib/gvc/gvusershape.c index 3deac419d..0bd3ca2c0 100644 --- a/lib/gvc/gvusershape.c +++ b/lib/gvc/gvusershape.c @@ -10,6 +10,7 @@ #include "config.h" +#include #include #include #include @@ -113,17 +114,17 @@ static int imagetype (usershape_t *us) return FT_NULL; } -static boolean get_int_lsb_first(FILE *f, size_t sz, unsigned int *val) { +static bool get_int_lsb_first(FILE *f, size_t sz, unsigned int *val) { int ch; *val = 0; for (size_t i = 0; i < sz; i++) { ch = fgetc(f); if (feof(f)) - return FALSE; + return false; *val |= (unsigned)ch << 8 * i; } - return TRUE; + return true; } static boolean get_int_msb_first(FILE *f, size_t sz, unsigned int *val) {