diff options
author | Martin Baulig <baulig@suse.de> | 2000-09-29 13:37:01 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 2000-09-29 13:37:01 +0000 |
commit | a3fc275ddd1237ba897eb86200636c49ffedae35 (patch) | |
tree | 2398f25f810c2ee2a43688e938f4c03dce1f90e3 /glib/gthreadpool.c | |
parent | 7633908c9396ff0b45d3f09c898781adb4caab84 (diff) | |
download | glib-a3fc275ddd1237ba897eb86200636c49ffedae35.tar.gz |
Several minor ANSI C fixes.
2000-09-29 Martin Baulig <baulig@suse.de>
Several minor ANSI C fixes.
Added missing casts:
* gdate.c (g_date_fill_parse_tokens): `s = (guchar *) str'.
* gmain.c (g_idle_dispatch): `func = (GSourceFunc) source_data'.
(g_idle_add_full): `(gpointer) function' in call to g_source_add().
* gstrfuncs.c (g_strdown): `s = (guchar *) string' and
`return (gchar *) string'.
(g_strup): Likewise.
(g_strchug): `start = (guchar*) string' in 1st for() argument;
`strlen ((gchar *) start)' in call to g_memmove().
* gstring.c (g_string_down): `s = (guchar *) string->str'.
(g_string_up): Likewise.
* gthreadpool.c (stop_this_thread_marker):
`(gpointer) &g_thread_pool_new'.
* gunidecomp.h (decomp_table[]): Cast all the strings to
`unsigned char *'.
Put text following #endif into comments:
* gmain.c: here.
Diffstat (limited to 'glib/gthreadpool.c')
-rw-r--r-- | glib/gthreadpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gthreadpool.c b/glib/gthreadpool.c index b281e7c1e..d1a4d2c24 100644 --- a/glib/gthreadpool.c +++ b/glib/gthreadpool.c @@ -42,7 +42,7 @@ struct _GRealThreadPool /* The following is just an address to mark the stop order for a * thread, it could be any address (as long, as it isn;t a valid * GThreadPool address) */ -static const gpointer stop_this_thread_marker = &g_thread_pool_new; +static const gpointer stop_this_thread_marker = (gpointer) &g_thread_pool_new; /* Here all unused threads are waiting, depending on their priority */ static GAsyncQueue *unused_thread_queue[G_THREAD_PRIORITY_URGENT + 1]; |