Commit 690d6b97 authored by James Turner's avatar James Turner Committed by Antoine Jacoutot

g_atomic_int_get, g_atomic_pointer_get: accept const arguments

https://bugzilla.gnome.org/show_bug.cgi?id=697386
parent aba02c52
......@@ -682,7 +682,7 @@ gsize
static pthread_mutex_t g_atomic_lock = PTHREAD_MUTEX_INITIALIZER;
gint
(g_atomic_int_get) (volatile gint *atomic)
(g_atomic_int_get) (const volatile gint *atomic)
{
gint value;
......@@ -797,9 +797,9 @@ guint
gpointer
(g_atomic_pointer_get) (volatile void *atomic)
(g_atomic_pointer_get) (const volatile void *atomic)
{
volatile gpointer *ptr = atomic;
const volatile gpointer *ptr = atomic;
gpointer value;
pthread_mutex_lock (&g_atomic_lock);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment