summaryrefslogtreecommitdiff
path: root/daemon
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 /daemon
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 'daemon')
-rw-r--r--daemon/gvfsftpconnection.c2
-rw-r--r--daemon/gvfsmonitor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gvfsftpconnection.c b/daemon/gvfsftpconnection.c
index 3df27fe7..fc4047d7 100644
--- a/daemon/gvfsftpconnection.c
+++ b/daemon/gvfsftpconnection.c
@@ -73,7 +73,7 @@ g_vfs_ftp_connection_new (GSocketConnectable *addr,
conn = g_slice_new0 (GVfsFtpConnection);
conn->client = g_socket_client_new ();
- conn->debug_id = g_atomic_int_exchange_and_add (&debug_id, 1);
+ conn->debug_id = g_atomic_int_add (&debug_id, 1);
conn->commands = G_IO_STREAM (g_socket_client_connect (conn->client,
addr,
cancellable,
diff --git a/daemon/gvfsmonitor.c b/daemon/gvfsmonitor.c
index 8947099f..8c9b38f4 100644
--- a/daemon/gvfsmonitor.c
+++ b/daemon/gvfsmonitor.c
@@ -129,7 +129,7 @@ g_vfs_monitor_init (GVfsMonitor *monitor)
G_TYPE_VFS_MONITOR,
GVfsMonitorPrivate);
- id = g_atomic_int_exchange_and_add (&path_counter, 1);
+ id = g_atomic_int_add (&path_counter, 1);
monitor->priv->object_path = g_strdup_printf (OBJ_PATH_PREFIX"%d", id);
}