Debian Codegraph @

debian/patches/fix_curl_long_args

raw
1 Index: collectd/src/curl.c
2 ===================================================================
3 --- collectd.orig/src/curl.c
4 +++ collectd/src/curl.c
5 @@ -346,7 +346,7 @@ static int cc_page_init_curl(web_page_t
6 curl_easy_setopt(wp->curl, CURLOPT_ERRORBUFFER, wp->curl_errbuf);
7 curl_easy_setopt(wp->curl, CURLOPT_FOLLOWLOCATION, 1L);
8 curl_easy_setopt(wp->curl, CURLOPT_MAXREDIRS, 50L);
9 - curl_easy_setopt(wp->curl, CURLOPT_IPRESOLVE, wp->address_family);
10 + curl_easy_setopt(wp->curl, CURLOPT_IPRESOLVE, (long)wp->address_family);
11
12 if (wp->user != NULL) {
13 #ifdef HAVE_CURLOPT_USERNAME
14 Index: collectd/src/curl_json.c
15 ===================================================================
16 --- collectd.orig/src/curl_json.c
17 +++ collectd/src/curl_json.c
18 @@ -583,7 +583,7 @@ static int cj_init_curl(cj_t *db) /* {{{
19 curl_easy_setopt(db->curl, CURLOPT_ERRORBUFFER, db->curl_errbuf);
20 curl_easy_setopt(db->curl, CURLOPT_FOLLOWLOCATION, 1L);
21 curl_easy_setopt(db->curl, CURLOPT_MAXREDIRS, 50L);
22 - curl_easy_setopt(db->curl, CURLOPT_IPRESOLVE, db->address_family);
23 + curl_easy_setopt(db->curl, CURLOPT_IPRESOLVE, (long)db->address_family);
24
25 if (db->user != NULL) {
26 #ifdef HAVE_CURLOPT_USERNAME
27 Index: collectd/src/curl_xml.c
28 ===================================================================
29 --- collectd.orig/src/curl_xml.c
30 +++ collectd/src/curl_xml.c
31 @@ -737,7 +737,7 @@ static int cx_init_curl(cx_t *db) /* {{{
32 curl_easy_setopt(db->curl, CURLOPT_ERRORBUFFER, db->curl_errbuf);
33 curl_easy_setopt(db->curl, CURLOPT_FOLLOWLOCATION, 1L);
34 curl_easy_setopt(db->curl, CURLOPT_MAXREDIRS, 50L);
35 - curl_easy_setopt(db->curl, CURLOPT_IPRESOLVE, db->address_family);
36 + curl_easy_setopt(db->curl, CURLOPT_IPRESOLVE, (long)db->address_family);
37
38 if (db->user != NULL) {
39 #ifdef HAVE_CURLOPT_USERNAME