projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Several minor ANSI C fixes.
[platform/upstream/glib.git]
/
glib
/
gstrfuncs.c
diff --git
a/glib/gstrfuncs.c
b/glib/gstrfuncs.c
index
21dc259
..
032343a
100644
(file)
--- a/
glib/gstrfuncs.c
+++ b/
glib/gstrfuncs.c
@@
-933,7
+933,7
@@
g_strdown (gchar *string)
g_return_val_if_fail (string != NULL, NULL);
g_return_val_if_fail (string != NULL, NULL);
- s = string;
+ s =
(guchar *)
string;
while (*s)
{
while (*s)
{
@@
-941,7
+941,7
@@
g_strdown (gchar *string)
s++;
}
s++;
}
- return string;
+ return
(gchar *)
string;
}
gchar*
}
gchar*
@@
-951,7
+951,7
@@
g_strup (gchar *string)
g_return_val_if_fail (string != NULL, NULL);
g_return_val_if_fail (string != NULL, NULL);
- s = string;
+ s =
(guchar *)
string;
while (*s)
{
while (*s)
{
@@
-959,7
+959,7
@@
g_strup (gchar *string)
s++;
}
s++;
}
- return string;
+ return
(gchar *)
string;
}
gchar*
}
gchar*
@@
-1455,10
+1455,10
@@
g_strchug (gchar *string)
g_return_val_if_fail (string != NULL, NULL);
g_return_val_if_fail (string != NULL, NULL);
- for (start = string; *start && isspace (*start); start++)
+ for (start =
(guchar*)
string; *start && isspace (*start); start++)
;
;
- g_memmove (string, start, strlen
(
start) + 1);
+ g_memmove (string, start, strlen
((gchar *)
start) + 1);
return string;
}
return string;
}