Use statically-allocated thread private data
[projects/chimara/chimara.git] / libchimara / chimara-glk.c
index 33c64e8642d62fb34338fa7c3808bdcd63cedd9d..a350c5aa0442bd35dd5dcb9aff389fa567eedd4a 100644 (file)
@@ -1128,8 +1128,8 @@ glk_main() runs. Takes ownership of @startup and will free it. */
 static gpointer
 glk_enter(struct StartupData *startup)
 {
-       extern GPrivate *glk_data_key;
-       g_private_set(glk_data_key, startup->glk_data);
+       extern GPrivate glk_data_key;
+       g_private_set(&glk_data_key, startup->glk_data);
 
        /* Acquire the Glk thread's references to the input queues */
        g_async_queue_ref(startup->glk_data->char_input_queue);