summaryrefslogtreecommitdiff
path: root/src/nm-iodine-service.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-02-26 14:09:49 +0100
committerGuido Günther <agx@sigxcpu.org>2012-02-26 18:11:22 +0100
commite4701889f33ffa4b2593b99f95cf98d44d41d479 (patch)
treeb8fc863db8c41f2bd30d598ac51543f2ea7024ff /src/nm-iodine-service.c
parentdc228bb35f45ac187b62ffbd50e9bcf7299338e6 (diff)
real_connect: return code is status not fd
Diffstat (limited to 'src/nm-iodine-service.c')
-rw-r--r--src/nm-iodine-service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nm-iodine-service.c b/src/nm-iodine-service.c
index 1e3974b..5409c7d 100644
--- a/src/nm-iodine-service.c
+++ b/src/nm-iodine-service.c
@@ -543,7 +543,7 @@ real_connect (NMVPNPlugin *plugin,
GError **error)
{
NMSettingVPN *s_vpn;
- gint iodine_fd = -1;
+ gint ret = -1;
s_vpn = NM_SETTING_VPN (nm_connection_get_setting (connection,
NM_TYPE_SETTING_VPN));
@@ -554,9 +554,9 @@ real_connect (NMVPNPlugin *plugin,
if (!nm_iodine_secrets_validate (s_vpn, error))
goto out;
- iodine_fd = nm_iodine_start_iodine_binary (NM_IODINE_PLUGIN (plugin),
+ ret = nm_iodine_start_iodine_binary (NM_IODINE_PLUGIN (plugin),
s_vpn, error);
- if (!iodine_fd)
+ if (!ret)
return TRUE;
out: