X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_http.c;h=7f5943a2435f1f7c9dafa9221433dd2ef92f4e41;hb=47b7950c0bd0ae0b3823b8bfc4442d6a5dad36c5;hp=6b1c64a7a48afbab11a6c1a2ff67b46efd10d789;hpb=99d7118d9ec6fd9b2907cef30bfa91c72b3a5826;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index 6b1c64a7..7f5943a2 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -88,7 +88,7 @@ static int wh_send_buffer (wh_callback_t *cb) /* {{{ */ curl_easy_setopt (cb->curl, CURLOPT_POSTFIELDS, cb->send_buffer); status = curl_easy_perform (cb->curl); - if (status != 0) + if (status != CURLE_OK) { ERROR ("write_http plugin: curl_easy_perform failed with " "status %i: %s",