summaryrefslogtreecommitdiff
path: root/egg
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-01-25 19:06:11 +0100
committerStef Walter <stefw@gnome.org>2013-01-25 19:07:10 +0100
commit3fcb3979d1301935a5c3c189aaa5f60ec9b8ab1e (patch)
tree7d8464eb74ef5b8096e8a71b162495e4131e81b7 /egg
parent316df4e8ab0fbce27bf4d70f32c1a84148676489 (diff)
downloadlibsecret-3fcb3979d1301935a5c3c189aaa5f60ec9b8ab1e.tar.gz
Fix for GStaticMutex deprecations in glib
Diffstat (limited to 'egg')
-rw-r--r--egg/egg-secure-memory.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/egg/egg-secure-memory.h b/egg/egg-secure-memory.h
index 969dbd7..fde9dfb 100644
--- a/egg/egg-secure-memory.h
+++ b/egg/egg-secure-memory.h
@@ -57,11 +57,11 @@ typedef struct {
lock, unlock, fallback, NULL, EGG_SECURE_POOL_VER_STR };
#define EGG_SECURE_DEFINE_GLIB_GLOBALS() \
- static GStaticMutex memory_mutex = G_STATIC_MUTEX_INIT; \
+ static GMutex memory_mutex = { NULL, }; \
static void egg_memory_lock (void) \
- { g_static_mutex_lock (&memory_mutex); } \
+ { g_mutex_lock (&memory_mutex); } \
static void egg_memory_unlock (void) \
- { g_static_mutex_unlock (&memory_mutex); } \
+ { g_mutex_unlock (&memory_mutex); } \
EGG_SECURE_DEFINE_GLOBALS (egg_memory_lock, egg_memory_unlock, g_realloc);
extern egg_secure_glob EGG_SECURE_GLOBALS;