[mutter] edid: Fix EDID parsing function signatures



commit 97c0d175965bf243f1a76d764b502db940159451
Author: Sebastian Wick <sebastian wick redhat com>
Date:   Wed Mar 30 16:30:32 2022 +0200

    edid: Fix EDID parsing function signatures
    
    Parsing functions return a boolean so change the return type to reflect
    this.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2351>

 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 a736a44b4d..223553d39a 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)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]