From befa2c2e082902ff4bf26b627d0ac45e06d88785 Mon Sep 17 00:00:00 2001 From: Jari Matilainen Date: Fri, 13 Jan 2017 12:22:55 +0000 Subject: [PATCH] Changed return type to gboolean to match function definition --- src/core/misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/misc.c b/src/core/misc.c index c75f54db..74399072 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -168,7 +168,7 @@ int strarray_find(char **array, const char *item) return -1; } -int strarray_find_prefix(char **array, const char *item) +gboolean strarray_find_prefix(char **array, const char *item) { char **tmp; int index; @@ -179,10 +179,10 @@ int strarray_find_prefix(char **array, const char *item) index = 0; for (tmp = array; *tmp != NULL; tmp++, index++) { if (g_str_has_prefix(*tmp, item)) - return index; + return TRUE; } - return -1; + return FALSE; } GSList *gslist_find_string(GSList *list, const char *key)