summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-09-16 16:51:14 +0200
committerBastien Nocera <hadess@hadess.net>2016-09-20 10:30:27 +0200
commitab2b13cacd1e076541e425d879659dcd245820ba (patch)
tree8308c58dcf3e6dfc8cb4094c3abbc3a5a6eb6ba8
parentda7be92093be4be359b33fd0dd3788c41ff89e4e (diff)
downloadgnome-control-center-ab2b13cacd1e076541e425d879659dcd245820ba.tar.gz
network: Fix compilation warnings
Those come from the fixes made in commits 981c354 and 7f601cf. https://bugzilla.gnome.org/show_bug.cgi?id=771538
-rw-r--r--panels/network/connection-editor/ce-page-ip4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/panels/network/connection-editor/ce-page-ip4.c b/panels/network/connection-editor/ce-page-ip4.c
index f747f3927..cfade7618 100644
--- a/panels/network/connection-editor/ce-page-ip4.c
+++ b/panels/network/connection-editor/ce-page-ip4.c
@@ -686,7 +686,7 @@ ui_to_setting (CEPageIP4 *page)
}
}
- addresses = g_ptr_array_new_with_free_func (nm_ip_address_unref);
+ addresses = g_ptr_array_new_with_free_func ((GDestroyNotify) nm_ip_address_unref);
if (g_str_equal (method, NM_SETTING_IP4_CONFIG_METHOD_MANUAL))
children = gtk_container_get_children (GTK_CONTAINER (page->address_list));
else
@@ -794,7 +794,7 @@ ui_to_setting (CEPageIP4 *page)
g_ptr_array_add (dns_servers, NULL);
}
- routes = g_ptr_array_new_with_free_func (nm_ip_route_unref);
+ routes = g_ptr_array_new_with_free_func ((GDestroyNotify) nm_ip_route_unref);
if (g_str_equal (method, NM_SETTING_IP4_CONFIG_METHOD_AUTO) ||
g_str_equal (method, NM_SETTING_IP4_CONFIG_METHOD_MANUAL))
children = gtk_container_get_children (GTK_CONTAINER (page->routes_list));