From 0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Oct 2013 23:09:51 +0200 Subject: Util/ASCII: add function StringEqualsCaseASCII() Replaces GLib's g_ascii_strcasecmp(). --- src/command/OtherCommands.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/command/OtherCommands.cxx') 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 - #include #include @@ -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); } } -- cgit v1.2.3