Merge branch 'collectd-4.10' into collectd-5.1
authorFlorian Forster <octo@collectd.org>
Sat, 16 Mar 2013 12:40:14 +0000 (13:40 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 16 Mar 2013 12:41:34 +0000 (13:41 +0100)
Conflicts:
src/curl_json.c

1  2 
src/apache.c
src/bind.c
src/curl.c
src/curl_json.c
src/exec.c
src/mysql.c
src/nginx.c
src/write_http.c

diff --cc src/apache.c
Simple merge
diff --cc src/bind.c
Simple merge
diff --cc src/curl.c
Simple merge
diff --cc src/curl_json.c
@@@ -766,14 -817,11 +759,14 @@@ static int cj_curl_perform (cj_t *db, C
      return (-1);
    }
  
 +  url = NULL;
 +  curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &url);
 +
    status = curl_easy_perform (curl);
-   if (status != 0)
+   if (status != CURLE_OK)
    {
      ERROR ("curl_json plugin: curl_easy_perform failed with status %i: %s (%s)",
 -           status, db->curl_errbuf, url);
 +           status, db->curl_errbuf, (url != NULL) ? url : "<null>");
      yajl_free (db->yajl);
      db->yajl = yprev;
      return (-1);
diff --cc src/exec.c
Simple merge
diff --cc src/mysql.c
Simple merge
diff --cc src/nginx.c
Simple merge
Simple merge