mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 02:40:17 +01:00
nm-policy: use nm_g_hash_table_add() instead of g_hash_table_add()
The return value of g_hash_table_add() was added in GLib 2.40, use the
wrapper to avoid compile error on older versions:
src/nm-policy.c: In function ‘auto_activate_device’:
src/nm-policy.c:1279:7: error: void value not ignored as it ought to be
Fixes: a1ea422aad
This commit is contained in:
parent
a1ea422aad
commit
e25de114b2
1 changed files with 1 additions and 1 deletions
|
|
@ -1276,7 +1276,7 @@ auto_activate_device (NMPolicy *self,
|
|||
* activation fails in early stages without changing device
|
||||
* state.
|
||||
*/
|
||||
if (g_hash_table_add (priv->pending_active_connections, ac)) {
|
||||
if (nm_g_hash_table_add (priv->pending_active_connections, ac)) {
|
||||
g_signal_connect (ac, NM_ACTIVE_CONNECTION_STATE_CHANGED,
|
||||
G_CALLBACK (pending_ac_state_changed), g_object_ref (self));
|
||||
g_object_weak_ref (G_OBJECT (ac), (GWeakNotify) pending_ac_gone, self);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue