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>
This commit is contained in:
Jonas Ådahl 2020-11-13 09:08:06 +01:00 committed by Marge Bot
parent 2ffa9ff3f2
commit c4dbf81c95

View File

@ -31,7 +31,7 @@
static const char *teststring = "test string 1234567890"; static const char *teststring = "test string 1234567890";
static int static gboolean
test_read_fd_mmap (int fd, test_read_fd_mmap (int fd,
const char *expected_string) const char *expected_string)
{ {
@ -53,7 +53,7 @@ test_read_fd_mmap (int fd,
return TRUE; return TRUE;
} }
static int static gboolean
test_write_fd (int fd, test_write_fd (int fd,
const char *string) const char *string)
{ {
@ -68,7 +68,7 @@ test_write_fd (int fd,
} }
#if defined(HAVE_MEMFD_CREATE) #if defined(HAVE_MEMFD_CREATE)
static int static gboolean
test_readonly_seals (int fd) test_readonly_seals (int fd)
{ {
unsigned int seals; unsigned int seals;
@ -84,7 +84,7 @@ test_readonly_seals (int fd)
} }
#endif #endif
static int static gboolean
test_write_read (int fd) test_write_read (int fd)
{ {
g_autofree char *new_string = g_uuid_string_random (); g_autofree char *new_string = g_uuid_string_random ();
@ -99,7 +99,7 @@ test_write_read (int fd)
} }
#if defined(HAVE_MEMFD_CREATE) #if defined(HAVE_MEMFD_CREATE)
static int static gboolean
test_open_write_read (const char *path) test_open_write_read (const char *path)
{ {
int fd; int fd;