diff options
author | Max Kellermann <max@duempel.org> | 2008-12-10 19:47:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-10 19:47:56 +0100 |
commit | d35bfe6d57bbd1adb830d7f7ae7ebc3c7dc9e644 (patch) | |
tree | c1ff692c546952a3bc5ca9e5c5e7c961df874a9d /src/support.c | |
parent | 5a4d4697a6729bd25b9bb0f58f2e5bc930debc9b (diff) | |
download | mpd-d35bfe6d57bbd1adb830d7f7ae7ebc3c7dc9e644.tar.gz mpd-d35bfe6d57bbd1adb830d7f7ae7ebc3c7dc9e644.tar.xz mpd-d35bfe6d57bbd1adb830d7f7ae7ebc3c7dc9e644.zip |
support: removed fallback strcasestr() implementation
The code which used to call strcasestr() has been converted to
match_line().
Diffstat (limited to 'src/support.c')
-rw-r--r-- | src/support.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/support.c b/src/support.c index 68dc55887..3dbebd0e1 100644 --- a/src/support.c +++ b/src/support.c @@ -24,25 +24,6 @@ #include <ctype.h> #include <string.h> -#ifndef HAVE_STRCASESTR -const char * -strcasestr(const char *haystack, const char *needle) -{ - char *haystack2 = g_utf8_strdown(haystack, -1); - char *needle2 = g_utf8_strdown(needle, -1); - char *result; - - assert(haystack != NULL); - assert(needle != NULL); - - result = strstr(haystack2, needle2); - g_free(haystack2); - g_free(needle2); - - return haystack + (result - haystack2); -} -#endif /* HAVE_STRCASESTR */ - #ifndef NCMPC_MINI // FIXME: utf-8 length |