Skip to content

Commit 718faf7

Browse files
committed
gvfs-helper: pass long values where expected
Just like we just did in the backport from my upstream contribution, let's convert the `curl_easy_setopt()` calls in `gvfs-helper.c` that still passed `int` constants to pass `long` instead. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 560fdc1 commit 718faf7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gvfs-helper.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,7 @@ static void do_req(const char *url_base,
29102910
slot = get_active_slot();
29112911
slot->results = &results;
29122912

2913-
curl_easy_setopt(slot->curl, CURLOPT_NOBODY, 0); /* not a HEAD request */
2913+
curl_easy_setopt(slot->curl, CURLOPT_NOBODY, 0L); /* not a HEAD request */
29142914
curl_easy_setopt(slot->curl, CURLOPT_URL, rest_url.buf);
29152915
curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, params->headers);
29162916
if (curl_version_info(CURLVERSION_NOW)->version_num < 0x074b00)
@@ -2928,14 +2928,14 @@ static void do_req(const char *url_base,
29282928
curl_easy_setopt(slot->curl, CURLOPT_FAILONERROR, (long)0);
29292929

29302930
if (params->b_is_post) {
2931-
curl_easy_setopt(slot->curl, CURLOPT_POST, 1);
2931+
curl_easy_setopt(slot->curl, CURLOPT_POST, 1L);
29322932
curl_easy_setopt(slot->curl, CURLOPT_ENCODING, NULL);
29332933
curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDS,
29342934
params->post_payload->buf);
29352935
curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDSIZE,
29362936
(long)params->post_payload->len);
29372937
} else {
2938-
curl_easy_setopt(slot->curl, CURLOPT_POST, 0);
2938+
curl_easy_setopt(slot->curl, CURLOPT_POST, 0L);
29392939
}
29402940

29412941
if (params->b_write_to_file) {
@@ -2961,9 +2961,9 @@ static void do_req(const char *url_base,
29612961
curl_easy_setopt(slot->curl, CURLOPT_XFERINFOFUNCTION,
29622962
gh__curl_progress_cb);
29632963
curl_easy_setopt(slot->curl, CURLOPT_XFERINFODATA, params);
2964-
curl_easy_setopt(slot->curl, CURLOPT_NOPROGRESS, 0);
2964+
curl_easy_setopt(slot->curl, CURLOPT_NOPROGRESS, 0L);
29652965
} else {
2966-
curl_easy_setopt(slot->curl, CURLOPT_NOPROGRESS, 1);
2966+
curl_easy_setopt(slot->curl, CURLOPT_NOPROGRESS, 1L);
29672967
}
29682968

29692969
gh__run_one_slot(slot, params, status);

0 commit comments

Comments
 (0)