mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 00:50:16 +01:00
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:
parent
453ea4d5c7
commit
034aee641a
1 changed files with 1 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue