summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/gdaemonfileenumerator.c2
-rw-r--r--client/gdaemonfilemonitor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/gdaemonfileenumerator.c b/client/gdaemonfileenumerator.c
index 46df64a7..d8ca8ab6 100644
--- a/client/gdaemonfileenumerator.c
+++ b/client/gdaemonfileenumerator.c
@@ -144,7 +144,7 @@ g_daemon_file_enumerator_init (GDaemonFileEnumerator *daemon)
{
char *path;
- daemon->id = g_atomic_int_exchange_and_add (&path_counter, 1);
+ daemon->id = g_atomic_int_add (&path_counter, 1);
path = g_daemon_file_enumerator_get_object_path (daemon);
_g_dbus_register_vfs_filter (path, g_daemon_file_enumerator_dbus_filter,
diff --git a/client/gdaemonfilemonitor.c b/client/gdaemonfilemonitor.c
index 20c10f92..dea5152f 100644
--- a/client/gdaemonfilemonitor.c
+++ b/client/gdaemonfilemonitor.c
@@ -86,7 +86,7 @@ g_daemon_file_monitor_init (GDaemonFileMonitor* daemon_monitor)
{
gint id;
- id = g_atomic_int_exchange_and_add (&path_counter, 1);
+ id = g_atomic_int_add (&path_counter, 1);
daemon_monitor->object_path = g_strdup_printf (OBJ_PATH_PREFIX"%d", id);