diff --git a/src/write_http.c b/src/write_http.c
index 6b1c64a7a48afbab11a6c1a2ff67b46efd10d789..7f5943a2435f1f7c9dafa9221433dd2ef92f4e41 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
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",