diff options
author | Berke Viktor <bviktor@hexchat.org> | 2013-05-14 16:52:16 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2013-05-14 16:52:16 +0200 |
commit | 947dd452942288aee8e109e3cb3e8b121146725b (patch) | |
tree | 8a3c61612dd392a450ceba6f842ae84812d6b4ad /src | |
parent | a435e8648fa16c8f661626b055e0e6626bf26460 (diff) |
Fix warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/common/inbound.c | 2 | ||||
-rw-r--r-- | src/common/server.c | 2 | ||||
-rw-r--r-- | src/common/servlist.c | 6 | ||||
-rw-r--r-- | src/common/util.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c index dd35ad1c..fabd020e 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -1160,7 +1160,7 @@ check_autojoin_channels (server *serv) i++; /* FIXME this is not going to work and is not needed either. server_free() does the job already. */ - /* g_slist_free_full (serv->favlist, servlist_favchan_free); */ + /* g_slist_free_full (serv->favlist, (GDestroyNotify) servlist_favchan_free); */ } /* This is really only for re-connects when you diff --git a/src/common/server.c b/src/common/server.c index c867e86a..9b71d53d 100644 --- a/src/common/server.c +++ b/src/common/server.c @@ -2031,7 +2031,7 @@ server_free (server *serv) if (serv->encoding) free (serv->encoding); if (serv->favlist) - g_slist_free_full (serv->favlist, servlist_favchan_free); + g_slist_free_full (serv->favlist, (GDestroyNotify) servlist_favchan_free); fe_server_callback (serv); diff --git a/src/common/servlist.c b/src/common/servlist.c index b6e28ac7..b55498cc 100644 --- a/src/common/servlist.c +++ b/src/common/servlist.c @@ -663,7 +663,7 @@ servlist_connect (session *sess, ircnet *net, gboolean join) { if (serv->favlist) { - g_slist_free_full (serv->favlist, servlist_favchan_free); + g_slist_free_full (serv->favlist, (GDestroyNotify) servlist_favchan_free); } serv->favlist = g_slist_copy_deep (net->favchanlist, (GCopyFunc) servlist_favchan_copy, NULL); } @@ -1119,9 +1119,9 @@ servlist_net_remove (ircnet *net) free (net->real); free_and_clear (net->pass); if (net->favchanlist) - g_slist_free_full (net->favchanlist, servlist_favchan_free); + g_slist_free_full (net->favchanlist, (GDestroyNotify) servlist_favchan_free); if (net->commandlist) - g_slist_free_full (net->commandlist, servlist_command_free); + g_slist_free_full (net->commandlist, (GDestroyNotify) servlist_command_free); if (net->comment) free (net->comment); if (net->encoding) diff --git a/src/common/util.c b/src/common/util.c index 29a0f3ed..a6c9fe21 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1886,7 +1886,7 @@ int main (int argc, char *argv[]) list = get_subdirs ("foo"); display_list (list); #if GLIB_CHECK_VERSION(2,28,0) - g_slist_free_full (list, (GFunc) g_free); + g_slist_free_full (list, (GDestroyNotify) g_free); #else g_slist_foreach (list, (GFunc) g_free, NULL); g_slist_free (list); |