From c4dbf81c95e6b6c24ac0ff1d5d3b5d81999ed548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 13 Nov 2020 09:08:06 +0100 Subject: [PATCH] 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: --- 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 79aa34364..ad8b5284b 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;