aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-06-01 13:22:46 +0800
committerMilan Crha <mcrha@redhat.com>2011-06-01 13:24:04 +0800
commit18a8cd2426a859fa16e514bcb672079317d9db94 (patch)
treef80b204eb531a22fd0a256b747b1eab3becad242 /mail
parent0a15c7079d373ad5960d87384bfd7292b79fac0a (diff)
downloadgsoc2013-evolution-18a8cd2426a859fa16e514bcb672079317d9db94.tar
gsoc2013-evolution-18a8cd2426a859fa16e514bcb672079317d9db94.tar.gz
gsoc2013-evolution-18a8cd2426a859fa16e514bcb672079317d9db94.tar.bz2
gsoc2013-evolution-18a8cd2426a859fa16e514bcb672079317d9db94.tar.lz
gsoc2013-evolution-18a8cd2426a859fa16e514bcb672079317d9db94.tar.xz
gsoc2013-evolution-18a8cd2426a859fa16e514bcb672079317d9db94.tar.zst
gsoc2013-evolution-18a8cd2426a859fa16e514bcb672079317d9db94.zip
Replace deprecated g_atomic_int_exchange_and_add()
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-store.c2
-rw-r--r--mail/mail-mt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mail/e-mail-store.c b/mail/e-mail-store.c
index e5d2012a65..1aef04acf9 100644
--- a/mail/e-mail-store.c
+++ b/mail/e-mail-store.c
@@ -115,7 +115,7 @@ store_info_unref (StoreInfo *store_info)
g_return_if_fail (store_info != NULL);
g_return_if_fail (store_info->ref_count > 0);
- if (g_atomic_int_exchange_and_add (&store_info->ref_count, -1) > 1)
+ if (g_atomic_int_add (&store_info->ref_count, -1) > 1)
return;
g_object_unref (store_info->store);
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 686f6dc0aa..5ef8a0147e 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -165,7 +165,7 @@ mail_msg_unref (gpointer msg)
g_return_if_fail (mail_msg != NULL);
g_return_if_fail (mail_msg->ref_count > 0);
- if (g_atomic_int_exchange_and_add (&mail_msg->ref_count, -1) > 1)
+ if (g_atomic_int_add (&mail_msg->ref_count, -1) > 1)
return;
#ifdef MALLOC_CHECK