From 2b789552985c20a19f8450cfe6afd057b550bfe1 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Tue, 18 Nov 2003 01:29:36 +0000 Subject: [PATCH] Use GUINT_TO_POINTER for g_thread_create data. Mon Nov 17 17:28:10 2003 Manish Singh * tests/thread-test.c (test_g_thread_once): Use GUINT_TO_POINTER for g_thread_create data. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ tests/thread-test.c | 2 +- 7 files changed, 31 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd640524e..9b6c1b243 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 17 17:28:10 2003 Manish Singh + + * tests/thread-test.c (test_g_thread_once): Use GUINT_TO_POINTER + for g_thread_create data. + Sat Nov 15 23:00:57 2003 Matthias Clasen * glib/guniprop.c (g_utf8_casefold): Add a NULL check diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index dd640524e..9b6c1b243 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Mon Nov 17 17:28:10 2003 Manish Singh + + * tests/thread-test.c (test_g_thread_once): Use GUINT_TO_POINTER + for g_thread_create data. + Sat Nov 15 23:00:57 2003 Matthias Clasen * glib/guniprop.c (g_utf8_casefold): Add a NULL check diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index dd640524e..9b6c1b243 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +Mon Nov 17 17:28:10 2003 Manish Singh + + * tests/thread-test.c (test_g_thread_once): Use GUINT_TO_POINTER + for g_thread_create data. + Sat Nov 15 23:00:57 2003 Matthias Clasen * glib/guniprop.c (g_utf8_casefold): Add a NULL check diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index dd640524e..9b6c1b243 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Mon Nov 17 17:28:10 2003 Manish Singh + + * tests/thread-test.c (test_g_thread_once): Use GUINT_TO_POINTER + for g_thread_create data. + Sat Nov 15 23:00:57 2003 Matthias Clasen * glib/guniprop.c (g_utf8_casefold): Add a NULL check diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index dd640524e..9b6c1b243 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Mon Nov 17 17:28:10 2003 Manish Singh + + * tests/thread-test.c (test_g_thread_once): Use GUINT_TO_POINTER + for g_thread_create data. + Sat Nov 15 23:00:57 2003 Matthias Clasen * glib/guniprop.c (g_utf8_casefold): Add a NULL check diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index dd640524e..9b6c1b243 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Mon Nov 17 17:28:10 2003 Manish Singh + + * tests/thread-test.c (test_g_thread_once): Use GUINT_TO_POINTER + for g_thread_create data. + Sat Nov 15 23:00:57 2003 Matthias Clasen * glib/guniprop.c (g_utf8_casefold): Add a NULL check diff --git a/tests/thread-test.c b/tests/thread-test.c index 8bed23bd1..47b030bbb 100644 --- a/tests/thread-test.c +++ b/tests/thread-test.c @@ -354,7 +354,7 @@ test_g_thread_once (void) G_LOCK (test_g_once); for (i = 0; i < G_ONCE_THREADS; i++) { - threads[i] = g_thread_create (test_g_once_thread, (gpointer)(i%2), + threads[i] = g_thread_create (test_g_once_thread, GUINT_TO_POINTER(i%2), TRUE, NULL); } G_UNLOCK (test_g_once);