[mutter] tests/anonymous-file: Fix return value type



commit c4dbf81c95e6b6c24ac0ff1d5d3b5d81999ed548
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Nov 13 09:08:06 2020 +0100

    tests/anonymous-file: Fix return value type
    
    TRUE or FALSE representing success or fail was used, but the function
    return type was not gboolean. Fix this.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1557>

 src/tests/anonymous-file.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/tests/anonymous-file.c b/src/tests/anonymous-file.c
index 79aa343644..ad8b5284b9 100644
--- a/src/tests/anonymous-file.c
+++ b/src/tests/anonymous-file.c
@@ -31,7 +31,7 @@
 
 static const char *teststring = "test string 1234567890";
 
-static int
+static gboolean
 test_read_fd_mmap (int         fd,
                    const char *expected_string)
 {
@@ -53,7 +53,7 @@ test_read_fd_mmap (int         fd,
   return TRUE;
 }
 
-static int
+static gboolean
 test_write_fd (int         fd,
                const char *string)
 {
@@ -68,7 +68,7 @@ test_write_fd (int         fd,
 }
 
 #if defined(HAVE_MEMFD_CREATE)
-static int
+static gboolean
 test_readonly_seals (int fd)
 {
   unsigned int seals;
@@ -84,7 +84,7 @@ test_readonly_seals (int fd)
 }
 #endif
 
-static int
+static gboolean
 test_write_read (int fd)
 {
   g_autofree char *new_string = g_uuid_string_random ();
@@ -99,7 +99,7 @@ test_write_read (int fd)
 }
 
 #if defined(HAVE_MEMFD_CREATE)
-static int
+static gboolean
 test_open_write_read (const char *path)
 {
   int fd;


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