ifcfg-rh: fix possible warning

'added' won't always be valid, and thus the GObject typecast could fail.
Use a C typecast instead.
This commit is contained in:
Dan Williams 2010-10-29 23:14:42 -05:00
parent 453ea4d5c7
commit 034aee641a

View file

@ -445,8 +445,7 @@ add_connection (NMSystemConfigInterface *config,
added = _internal_new_connection (self, path, connection, error);
g_free (path);
}
return NM_SYSCONFIG_CONNECTION (added);
return (NMSysconfigConnection *) added;
}
#define SC_NETWORK_FILE SYSCONFDIR"/sysconfig/network"