diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-12-12 10:47:58 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-12-12 10:47:58 +0800 |
commit | f0761e8f6c2e32be24bef8b8e3fcce8343656b6a (patch) | |
tree | 7105e5a358907ae43650cc834eb983f69908b7d5 /e-util/e-util.c | |
parent | ea469b6fc7fa5a173149a5c0d2725fb3d0aa48b2 (diff) | |
download | gsoc2013-evolution-f0761e8f6c2e32be24bef8b8e3fcce8343656b6a.tar.gz gsoc2013-evolution-f0761e8f6c2e32be24bef8b8e3fcce8343656b6a.tar.zst gsoc2013-evolution-f0761e8f6c2e32be24bef8b8e3fcce8343656b6a.zip |
Fixed a warning by making e_strstrcase return a const gchar.
2000-12-11 Christopher James Lahey <clahey@helixcode.com>
* gal/util/e-util.c, gal/util/e-util.h: Fixed a warning by making
e_strstrcase return a const gchar.
svn path=/trunk/; revision=6936
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r-- | e-util/e-util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index ede1b3c8ab..e24903bc71 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -500,7 +500,7 @@ e_strsplit (const gchar *string, return str_array; } -gchar * +const gchar * e_strstrcase (const gchar *haystack, const gchar *needle) { /* find the needle in the haystack neglecting case */ @@ -515,9 +515,9 @@ e_strstrcase (const gchar *haystack, const gchar *needle) return NULL; if (len == 0) - return (gchar *) haystack; + return haystack; - for (ptr = (gchar *) haystack; *(ptr + len - 1) != '\0'; ptr++) + for (ptr = haystack; *(ptr + len - 1) != '\0'; ptr++) if (!g_strncasecmp (ptr, needle, len)) return ptr; |