aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/CurlInputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 15:25:32 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 15:36:47 +0200
commitb39ab76118067fe6e7cb83afb176dcef4c936d3d (patch)
tree529201bb86cdf2c0f3d142aecbb2ace5209b6b89 /src/input/CurlInputPlugin.cxx
parent90777f78c99774023e694bef5933da88d74f4d45 (diff)
downloadmpd-b39ab76118067fe6e7cb83afb176dcef4c936d3d.tar.gz
mpd-b39ab76118067fe6e7cb83afb176dcef4c936d3d.tar.xz
mpd-b39ab76118067fe6e7cb83afb176dcef4c936d3d.zip
Util/CharUtil: new library replacing g_ascii_isX()
Diffstat (limited to '')
-rw-r--r--src/input/CurlInputPlugin.cxx5
1 files changed, 3 insertions, 2 deletions
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) {