[network-manager-iodine/danw/cleanup-bgo746693] fixup! all: use nm_connection_get_setting_*()
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-iodine/danw/cleanup-bgo746693] fixup! all: use nm_connection_get_setting_*()
- Date: Wed, 25 Mar 2015 09:52:41 +0000 (UTC)
commit 8bffb02d4620bd823b31fa14ad5c1f6ab121be96
Author: Jiří Klimeš <jklimes redhat com>
Date: Wed Mar 25 10:29:52 2015 +0100
fixup! all: use nm_connection_get_setting_*()
properties/nm-iodine.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/properties/nm-iodine.c b/properties/nm-iodine.c
index 7be62d8..61d8d1b 100644
--- a/properties/nm-iodine.c
+++ b/properties/nm-iodine.c
@@ -153,7 +153,6 @@ export (NMVpnPluginUiInterface *iface,
NMConnection *connection,
GError **error)
{
- NMSettingConnection *s_con;
NMSettingVPN *s_vpn;
const char *value;
const char *topdomain = NULL;
@@ -168,9 +167,6 @@ export (NMVpnPluginUiInterface *iface,
return FALSE;
}
- s_con = NM_SETTING_CONNECTION (nm_connection_get_setting
- (connection, NM_TYPE_SETTING_CONNECTION));
-
s_vpn = nm_connection_get_setting_vpn (connection);
value = nm_setting_vpn_get_data_item (s_vpn, NM_IODINE_KEY_TOPDOMAIN);
@@ -196,7 +192,7 @@ export (NMVpnPluginUiInterface *iface,
"Topdomain=%s\n"
"Nameserver=%s\n"
"Fragsize=%s\n",
- /* Description */ nm_setting_connection_get_id (s_con),
+ /* Description */ nm_connection_get_id (connection),
/* Topdomain */ topdomain,
/* Nameserver */ nameserver,
/* Fragsize */ fragsize);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]