gnome-keyring r1148 - in trunk: . common
- From: nnielsen svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-keyring r1148 - in trunk: . common
- Date: Mon, 26 May 2008 16:21:18 +0000 (UTC)
Author: nnielsen
Date: Mon May 26 16:21:18 2008
New Revision: 1148
URL: http://svn.gnome.org/viewvc/gnome-keyring?rev=1148&view=rev
Log:
* common/gkr-async.c: Fix compiler warnings. Fixes bug #534328
Modified:
trunk/ChangeLog
trunk/common/gkr-async.c
Modified: trunk/common/gkr-async.c
==============================================================================
--- trunk/common/gkr-async.c (original)
+++ trunk/common/gkr-async.c Mon May 26 16:21:18 2008
@@ -44,7 +44,7 @@
g_atomic_int_inc (&waiting_on_lock); \
if (g_atomic_int_get (&waiting_on_poll)) gkr_wakeup_now (); \
g_mutex_lock (mtx); \
- g_atomic_int_dec_and_test (&waiting_on_lock); \
+ g_atomic_int_exchange_and_add (&waiting_on_lock, -1); \
} G_STMT_END
#define DO_UNLOCK(mtx) G_STMT_START { \
g_printerr ("%s UNLOCK %s\n", __func__, G_STRINGIFY(mtx)); \
@@ -55,7 +55,7 @@
g_atomic_int_inc (&waiting_on_lock); \
if (g_atomic_int_get (&waiting_on_poll)) gkr_wakeup_now (); \
g_mutex_lock (mtx); \
- g_atomic_int_dec_and_test (&waiting_on_lock); \
+ g_atomic_int_exchange_and_add (&waiting_on_lock, -1); \
} G_STMT_END
#define DO_UNLOCK(mtx) \
g_mutex_unlock (mtx)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]