1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Fix Clang warnings

This patch fixes a few warnings emitted by clang by removing the
initialization of the list by itself.
This commit is contained in:
Alexander Færøy 2014-07-07 22:26:04 +02:00
parent 09a1801186
commit b2c3db4d5b

View File

@ -183,7 +183,7 @@ int strarray_find(char **array, const char *item)
GSList *gslist_find_string(GSList *list, const char *key)
{
for (list = list; list != NULL; list = list->next)
for (; list != NULL; list = list->next)
if (strcmp(list->data, key) == 0) return list;
return NULL;
@ -191,7 +191,7 @@ GSList *gslist_find_string(GSList *list, const char *key)
GSList *gslist_find_icase_string(GSList *list, const char *key)
{
for (list = list; list != NULL; list = list->next)
for (; list != NULL; list = list->next)
if (g_ascii_strcasecmp(list->data, key) == 0) return list;
return NULL;
@ -268,7 +268,7 @@ GSList *hashtable_get_keys(GHashTable *hash)
GList *glist_find_string(GList *list, const char *key)
{
for (list = list; list != NULL; list = list->next)
for (; list != NULL; list = list->next)
if (strcmp(list->data, key) == 0) return list;
return NULL;
@ -276,7 +276,7 @@ GList *glist_find_string(GList *list, const char *key)
GList *glist_find_icase_string(GList *list, const char *key)
{
for (list = list; list != NULL; list = list->next)
for (; list != NULL; list = list->next)
if (g_ascii_strcasecmp(list->data, key) == 0) return list;
return NULL;