diff options
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-util.c | 10 | ||||
-rw-r--r-- | e-util/e-util.h | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index 6965bff9ee..9cc1b40b0a 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; } -const gchar * +gchar * e_strstrcase (const gchar *haystack, const gchar *needle) { /* find the needle in the haystack neglecting case */ @@ -515,17 +515,17 @@ e_strstrcase (const gchar *haystack, const gchar *needle) return NULL; if (len == 0) - return haystack; + return (gchar *) haystack; - for (ptr = haystack; *(ptr + len - 1) != '\0'; ptr++) - if (!g_strncasecmp(ptr, needle, len)) + for (ptr = (gchar *) haystack; *(ptr + len - 1) != '\0'; ptr++) + if (!g_strncasecmp (ptr, needle, len)) return ptr; return NULL; } void -e_str_make_safe (gchar *string) +e_filename_make_safe (gchar *string) { gchar *p; diff --git a/e-util/e-util.h b/e-util/e-util.h index 37dcf3daec..fc6d12ef34 100644 --- a/e-util/e-util.h +++ b/e-util/e-util.h @@ -48,10 +48,11 @@ gchar **e_strsplit (const gchar *string, const gchar *delimiter, gint max_tokens); -const gchar *e_strstrcase (const gchar *haystack, - const gchar *needle); +gchar *e_strstrcase (const gchar *haystack, + const gchar *needle); -void e_str_make_safe (gchar *string); +void e_filename_make_safe (gchar *string); +#define e_str_make_safe(x) e_filename_make_safe(x) void e_marshal_INT__INT_INT_POINTER (GtkObject * object, GtkSignalFunc func, |