aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-15 20:43:17 +0100
committerMax Kellermann <max@duempel.org>2014-03-15 20:43:17 +0100
commite9f16fca969bc34068f9ec11299a7302dcb90580 (patch)
tree402e47a2fe3a362e7a1abd75145094d95d0310ff /src
parent3d30de91f31a3856e098624e1e8b3aaaf8266610 (diff)
downloadmpd-e9f16fca969bc34068f9ec11299a7302dcb90580.tar.gz
mpd-e9f16fca969bc34068f9ec11299a7302dcb90580.tar.xz
mpd-e9f16fca969bc34068f9ec11299a7302dcb90580.zip
input/curl: rename "error" to "error_buffer"
Diffstat (limited to 'src')
-rw-r--r--src/input/plugins/CurlInputPlugin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx
index 445373a9a..bc4b0e5b6 100644
--- a/src/input/plugins/CurlInputPlugin.cxx
+++ b/src/input/plugins/CurlInputPlugin.cxx
@@ -153,7 +153,7 @@ struct CurlInputStream {
bool paused;
/** error message provided by libcurl */
- char error[CURL_ERROR_SIZE];
+ char error_buffer[CURL_ERROR_SIZE];
/** parser for icy-metadata */
IcyMetaDataParser icy;
@@ -503,7 +503,7 @@ input_curl_request_done(CurlInputStream *c, CURLcode result, long status)
if (result != CURLE_OK) {
c->postponed_error.Format(curl_domain, result,
- "curl failed: %s", c->error);
+ "curl failed: %s", c->error_buffer);
} else if (status < 200 || status >= 300) {
c->postponed_error.Format(http_domain, status,
"got HTTP status %ld",
@@ -992,7 +992,7 @@ input_curl_easy_init(CurlInputStream *c, Error &error)
curl_easy_setopt(c->easy, CURLOPT_NETRC, 1);
curl_easy_setopt(c->easy, CURLOPT_MAXREDIRS, 5);
curl_easy_setopt(c->easy, CURLOPT_FAILONERROR, true);
- curl_easy_setopt(c->easy, CURLOPT_ERRORBUFFER, c->error);
+ curl_easy_setopt(c->easy, CURLOPT_ERRORBUFFER, c->error_buffer);
curl_easy_setopt(c->easy, CURLOPT_NOPROGRESS, 1l);
curl_easy_setopt(c->easy, CURLOPT_NOSIGNAL, 1l);
curl_easy_setopt(c->easy, CURLOPT_CONNECTTIMEOUT, 10l);