mirror of
https://github.com/irssi/irssi.git
synced 2026-08-23 02:22:36 +02:00
Changed return type to gboolean to match function definition
This commit is contained in:
parent
8b556a42e4
commit
befa2c2e08
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue