summaryrefslogtreecommitdiff
path: root/src/settings/nm-agent-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/nm-agent-manager.c')
-rw-r--r--src/settings/nm-agent-manager.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/settings/nm-agent-manager.c b/src/settings/nm-agent-manager.c
index aa05354e06..21635a939e 100644
--- a/src/settings/nm-agent-manager.c
+++ b/src/settings/nm-agent-manager.c
@@ -1216,12 +1216,8 @@ nm_agent_manager_get_secrets (NMAgentManager *self,
req->con.get.callback = callback;
req->con.get.callback_data = callback_data;
-#if GLIB_CHECK_VERSION(2, 40, 0)
- if (!g_hash_table_add (priv->requests, req))
+ if (!nm_g_hash_table_add (priv->requests, req))
g_assert_not_reached ();
-#else
- g_hash_table_add (priv->requests, req);
-#endif
/* Kick off the request */
if (!(req->con.get.flags & NM_SECRET_AGENT_GET_SECRETS_FLAG_ONLY_SYSTEM))
@@ -1326,12 +1322,8 @@ nm_agent_manager_save_secrets (NMAgentManager *self,
subject);
req->con.path = g_strdup (path);
req->con.connection = g_object_ref (connection);
-#if GLIB_CHECK_VERSION(2, 40, 0)
- if (!g_hash_table_add (priv->requests, req))
+ if (!nm_g_hash_table_add (priv->requests, req))
g_assert_not_reached ();
-#else
- g_hash_table_add (priv->requests, req);
-#endif
/* Kick off the request */
request_add_agents (self, req);
@@ -1418,12 +1410,8 @@ nm_agent_manager_delete_secrets (NMAgentManager *self,
req->con.path = g_strdup (path);
req->con.connection = g_object_ref (connection);
g_object_unref (subject);
-#if GLIB_CHECK_VERSION(2, 40, 0)
- if (!g_hash_table_add (priv->requests, req))
+ if (!nm_g_hash_table_add (priv->requests, req))
g_assert_not_reached ();
-#else
- g_hash_table_add (priv->requests, req);
-#endif
/* Kick off the request */
request_add_agents (self, req);