From 222dc8a239f7578cecdcb21523052140aa1192cf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 21 Oct 2013 08:42:55 +0200 Subject: Util/ASCII: add StringEqualsCaseASCII() overload with length Replaces GLib's g_ascii_strncasecmp(). --- src/pcm/PcmResampleLibsamplerate.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/pcm') diff --git a/src/pcm/PcmResampleLibsamplerate.cxx b/src/pcm/PcmResampleLibsamplerate.cxx index 2ffe4b8c4..1986e8821 100644 --- a/src/pcm/PcmResampleLibsamplerate.cxx +++ b/src/pcm/PcmResampleLibsamplerate.cxx @@ -19,12 +19,11 @@ #include "config.h" #include "PcmResampleInternal.hxx" +#include "util/ASCII.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" #include "Log.hxx" -#include - #include #include #include @@ -54,7 +53,7 @@ lsr_parse_converter(const char *s) if (name == nullptr) break; - if (g_ascii_strncasecmp(s, name, length) == 0) { + if (StringEqualsCaseASCII(s, name, length)) { lsr_converter = i; return true; } -- cgit v1.2.3