From 3b991434a3836becb73d423041958856d69fbb03 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 10 Nov 2021 17:27:28 -0800 Subject: [PATCH] get_int_lsb_first: use a C99 bool return type --- lib/gvc/gvusershape.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) { -- 2.40.0