summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2011-10-21 13:59:29 +0200
committerTomas Bzatek <tbzatek@redhat.com>2011-10-21 13:59:29 +0200
commit90372ae6344398beaca9ef8c37ba2704014a5c39 (patch)
treebda058bd5bed51f2b6c96cb04f9b46a285eff0ca /client
parent94489e37b70992961c7afddbb2b875a907a4f35f (diff)
downloadgvfs-90372ae6344398beaca9ef8c37ba2704014a5c39.tar.gz
Use g_atomic_int_add instead of deprecated g_atomic_int_exchange_and_add.
https://bugzilla.gnome.org/show_bug.cgi?id=659815
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);