Skip to content

Commit 7f59b51

Browse files
committed
CURLOPT_NOPROGRESS wants a long argument
Avoids a warning with recent libcurl that uses GCC extensions to typecheck curl_easy_setopt() usage.
1 parent 225cabb commit 7f59b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ref_cache/upstream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ static int init_multi_data(CURLM *multi, Multi_data *mdata) {
866866
curl_easy_strerror(cc));
867867
goto fail;
868868
}
869-
cc = curl_easy_setopt(mdata->curls[i], CURLOPT_NOPROGRESS, 0);
869+
cc = curl_easy_setopt(mdata->curls[i], CURLOPT_NOPROGRESS, 0L);
870870
#if LIBCURL_VERSION_NUM >= 0x072000 // 7.32.0
871871
cc = curl_easy_setopt(mdata->curls[i],
872872
CURLOPT_XFERINFOFUNCTION, progress_callback);

0 commit comments

Comments
 (0)