diff options
author | Max Kellermann <max@duempel.org> | 2013-10-20 23:09:51 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-20 23:09:51 +0200 |
commit | 0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b (patch) | |
tree | 181aa272821ace382565b3c3465949101b98e253 /src/command | |
parent | 2bbff77e489ae72a332b18b122844bd761d75764 (diff) | |
download | mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.tar.gz mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.tar.xz mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.zip |
Util/ASCII: add function StringEqualsCaseASCII()
Replaces GLib's g_ascii_strcasecmp().
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/OtherCommands.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx index 1291caf4e..55391af16 100644 --- a/src/command/OtherCommands.cxx +++ b/src/command/OtherCommands.cxx @@ -33,6 +33,7 @@ #include "protocol/Result.hxx" #include "ls.hxx" #include "Volume.hxx" +#include "util/ASCII.hxx" #include "util/UriUtil.hxx" #include "util/Error.hxx" #include "fs/AllocatedPath.hxx" @@ -47,8 +48,6 @@ #include "StickerDatabase.hxx" #endif -#include <glib.h> - #include <assert.h> #include <string.h> @@ -298,7 +297,7 @@ handle_idle(Client &client, continue; for (j = 0; idle_names[j]; ++j) { - if (!g_ascii_strcasecmp(argv[i], idle_names[j])) { + if (StringEqualsCaseASCII(argv[i], idle_names[j])) { flags |= (1 << j); } } |