From 97c0d175965bf243f1a76d764b502db940159451 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Wed, 30 Mar 2022 16:30:32 +0200 Subject: [PATCH] edid: Fix EDID parsing function signatures Parsing functions return a boolean so change the return type to reflect this. Part-of: --- src/backends/edid-parse.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/backends/edid-parse.c b/src/backends/edid-parse.c index a736a44b4..223553d39 100644 --- a/src/backends/edid-parse.c +++ b/src/backends/edid-parse.c @@ -45,7 +45,7 @@ get_bits (int in, int begin, int end) return (in >> begin) & mask; } -static int +static gboolean decode_header (const uint8_t *edid) { if (memcmp (edid, "\x00\xff\xff\xff\xff\xff\xff\x00", 8) == 0) @@ -53,7 +53,7 @@ decode_header (const uint8_t *edid) return FALSE; } -static int +static gboolean decode_vendor_and_product_identification (const uint8_t *edid, MetaEdidInfo *info) { @@ -109,7 +109,7 @@ decode_vendor_and_product_identification (const uint8_t *edid, return TRUE; } -static int +static gboolean decode_edid_version (const uint8_t *edid, MetaEdidInfo *info) { @@ -119,7 +119,7 @@ decode_edid_version (const uint8_t *edid, return TRUE; } -static int +static gboolean decode_display_parameters (const uint8_t *edid, MetaEdidInfo *info) { @@ -263,7 +263,7 @@ decode_fraction (int high, int low) return result; } -static int +static gboolean decode_color_characteristics (const uint8_t *edid, MetaEdidInfo *info) { @@ -333,7 +333,7 @@ decode_established_timings (const uint8_t *edid, return TRUE; } -static int +static gboolean decode_standard_timings (const uint8_t *edid, MetaEdidInfo *info) { @@ -499,7 +499,7 @@ decode_detailed_timing (const uint8_t *timing, } } -static int +static gboolean decode_descriptors (const uint8_t *edid, MetaEdidInfo *info) {