summaryrefslogtreecommitdiff
path: root/glib/gdate.c
diff options
context:
space:
mode:
authorMartin Baulig <baulig@suse.de>2000-09-29 13:37:01 +0000
committerMartin Baulig <martin@src.gnome.org>2000-09-29 13:37:01 +0000
commita3fc275ddd1237ba897eb86200636c49ffedae35 (patch)
tree2398f25f810c2ee2a43688e938f4c03dce1f90e3 /glib/gdate.c
parent7633908c9396ff0b45d3f09c898781adb4caab84 (diff)
downloadglib-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/gdate.c')
-rw-r--r--glib/gdate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gdate.c b/glib/gdate.c
index d287fb42d..ac5992758 100644
--- a/glib/gdate.c
+++ b/glib/gdate.c
@@ -465,7 +465,7 @@ g_date_fill_parse_tokens (const gchar *str, GDateParseTokens *pt)
*/
num[0][0] = num[1][0] = num[2][0] = num[3][0] = '\0';
- s = str;
+ s = (const guchar *) str;
pt->num_ints = 0;
while (*s && pt->num_ints < 4)
{