summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2017-09-27 14:13:12 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2017-09-27 14:17:11 +0200
commite25de114b2cf3192d17c9796082c6d1ebfb5ac33 (patch)
tree69336833487edaa1b767e4e9c4d24b1f06983d5a
parenta1ea422aadffa808dda780e005969ecadb8c260e (diff)
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: a1ea422aadffa808dda780e005969ecadb8c260e
-rw-r--r--src/nm-policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-policy.c b/src/nm-policy.c
index 402dc18f4..3c569d597 100644
--- a/src/nm-policy.c
+++ b/src/nm-policy.c
@@ -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);