]> granicus.if.org Git - graphviz/commitdiff
get_int_msb_first: use a C99 bool return type
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 11 Nov 2021 01:27:29 +0000 (17:27 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 17 Nov 2021 01:01:22 +0000 (17:01 -0800)
lib/gvc/gvusershape.c

index 0bd3ca2c0c4a38ae4443c17d11d52fe66298ee8f..bfe61fa6f2010342ed1aca760a31e024c3669e59 100644 (file)
@@ -127,18 +127,18 @@ static bool get_int_lsb_first(FILE *f, size_t sz, unsigned int *val) {
     return true;
 }
        
-static boolean get_int_msb_first(FILE *f, size_t sz, unsigned int *val) {
+static bool get_int_msb_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 <<= 8;
        *val |= ch;
     }
-    return TRUE;
+    return true;
 }
 
 static unsigned int svg_units_convert(double n, char *u)