Code

Use gcc-specific __attribute__ to mark unused parameter
[collectd.git] / src / ascent.c
index 23783862d53a685c8acb67fbca3ac0ebbc1ed070..94a39386b0a45f74cba03ddd237588c3ba8edfb7 100644 (file)
@@ -597,7 +597,7 @@ static int ascent_read (void) /* {{{ */
   }
 
   ascent_buffer_fill = 0;
-  if (curl_easy_perform (curl) != 0)
+  if (curl_easy_perform (curl) != CURLE_OK)
   {
     ERROR ("ascent plugin: curl_easy_perform failed: %s",
         ascent_curl_error);