From 99d73203f0fa94321c65147d065590b52312ae1c Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 11 Sep 2015 16:54:44 +0200 Subject: fixup! device/gre: implement device creation --- src/devices/nm-device-gre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/nm-device-gre.c b/src/devices/nm-device-gre.c index 7e1118d6d5..449b86e1b5 100644 --- a/src/devices/nm-device-gre.c +++ b/src/devices/nm-device-gre.c @@ -160,7 +160,7 @@ update_connection (NMDevice *device, NMConnection *connection) g_object_set (G_OBJECT (s_tunnel), NM_SETTING_TUNNEL_MODE, NM_SETTING_TUNNEL_MODE_GRE, NULL); if (nm_setting_tunnel_get_local (s_tunnel)) - local = inet_pton (AF_INET, nm_setting_tunnel_get_local (s_tunnel), &local); + inet_pton (AF_INET, nm_setting_tunnel_get_local (s_tunnel), &local); if (local != props.local) { g_object_set (G_OBJECT (s_tunnel), NM_SETTING_TUNNEL_LOCAL, @@ -169,7 +169,7 @@ update_connection (NMDevice *device, NMConnection *connection) } if (nm_setting_tunnel_get_remote (s_tunnel)) - remote = inet_pton (AF_INET, nm_setting_tunnel_get_remote (s_tunnel), &remote); + inet_pton (AF_INET, nm_setting_tunnel_get_remote (s_tunnel), &remote); if (remote != props.remote) { g_object_set (G_OBJECT (s_tunnel), NM_SETTING_TUNNEL_REMOTE, -- cgit v1.2.1