From b39ab76118067fe6e7cb83afb176dcef4c936d3d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 15:25:32 +0200 Subject: Util/CharUtil: new library replacing g_ascii_isX() --- src/input/CurlInputPlugin.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/input') diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx index 8f54898fc..de3e83a86 100644 --- a/src/input/CurlInputPlugin.cxx +++ b/src/input/CurlInputPlugin.cxx @@ -29,6 +29,7 @@ #include "event/MultiSocketMonitor.hxx" #include "event/Call.hxx" #include "IOThread.hxx" +#include "util/CharUtil.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" #include "Log.hxx" @@ -839,10 +840,10 @@ input_curl_headerfunction(void *ptr, size_t size, size_t nmemb, void *stream) /* strip the value */ - while (value < end && g_ascii_isspace(*value)) + while (value < end && IsWhitespaceOrNull(*value)) ++value; - while (end > value && g_ascii_isspace(end[-1])) + while (end > value && IsWhitespaceOrNull(end[-1])) --end; if (g_ascii_strcasecmp(name, "accept-ranges") == 0) { -- cgit v1.2.3