Use statically-allocated thread private data
[projects/chimara/chimara.git] / libchimara / chimara-glk.c
index 793c6e8fbf15f018959ab1fa5d0893cacd235dc2..1d31b273f629f8e5a4e12ecb1a8842e765d9f232 100644 (file)
@@ -1189,8 +1189,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);