diff options
author | Dan Winship <danw@redhat.com> | 2014-11-25 17:28:51 -0500 |
---|---|---|
committer | Dan Winship <danw@redhat.com> | 2015-03-25 12:51:36 -0400 |
commit | c53b571dbaae1644d0e5f585046694aadd868d13 (patch) | |
tree | a0a96dd658f37bba0b4c87dfeea0dcd1538f5802 /src | |
parent | 7c2984da8cae06e0875209666c3ed77cbd00f5b0 (diff) |
all: use nm_connection_get_setting_*()
The code was still using nm_connection_get_setting(). Use the typesafe
setting-specific versions instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/nm-iodine-service.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nm-iodine-service.c b/src/nm-iodine-service.c index dc97998..23fc858 100644 --- a/src/nm-iodine-service.c +++ b/src/nm-iodine-service.c @@ -561,8 +561,7 @@ real_connect (NMVPNPlugin *plugin, NMSettingVPN *s_vpn; gint ret = -1; - s_vpn = NM_SETTING_VPN (nm_connection_get_setting (connection, - NM_TYPE_SETTING_VPN)); + s_vpn = nm_connection_get_setting_vpn (connection); g_assert (s_vpn); if (!nm_iodine_properties_validate (s_vpn, error)) goto out; @@ -591,8 +590,7 @@ real_need_secrets (NMVPNPlugin *plugin, g_return_val_if_fail (NM_IS_VPN_PLUGIN (plugin), FALSE); g_return_val_if_fail (NM_IS_CONNECTION (connection), FALSE); - s_vpn = NM_SETTING_VPN (nm_connection_get_setting (connection, - NM_TYPE_SETTING_VPN)); + s_vpn = nm_connection_get_setting_vpn (connection); if (!s_vpn) { g_set_error (error, NM_VPN_PLUGIN_ERROR, |