@@ -2908,7 +2908,7 @@ static void do_req(const char *url_base,
2908
2908
slot = get_active_slot ();
2909
2909
slot -> results = & results ;
2910
2910
2911
- curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 0 ); /* not a HEAD request */
2911
+ curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 0L ); /* not a HEAD request */
2912
2912
curl_easy_setopt (slot -> curl , CURLOPT_URL , rest_url .buf );
2913
2913
curl_easy_setopt (slot -> curl , CURLOPT_HTTPHEADER , params -> headers );
2914
2914
if (curl_version_info (CURLVERSION_NOW )-> version_num < 0x074b00 )
@@ -2926,14 +2926,14 @@ static void do_req(const char *url_base,
2926
2926
curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , (long )0 );
2927
2927
2928
2928
if (params -> b_is_post ) {
2929
- curl_easy_setopt (slot -> curl , CURLOPT_POST , 1 );
2929
+ curl_easy_setopt (slot -> curl , CURLOPT_POST , 1L );
2930
2930
curl_easy_setopt (slot -> curl , CURLOPT_ENCODING , NULL );
2931
2931
curl_easy_setopt (slot -> curl , CURLOPT_POSTFIELDS ,
2932
2932
params -> post_payload -> buf );
2933
2933
curl_easy_setopt (slot -> curl , CURLOPT_POSTFIELDSIZE ,
2934
2934
(long )params -> post_payload -> len );
2935
2935
} else {
2936
- curl_easy_setopt (slot -> curl , CURLOPT_POST , 0 );
2936
+ curl_easy_setopt (slot -> curl , CURLOPT_POST , 0L );
2937
2937
}
2938
2938
2939
2939
if (params -> b_write_to_file ) {
@@ -2959,9 +2959,9 @@ static void do_req(const char *url_base,
2959
2959
curl_easy_setopt (slot -> curl , CURLOPT_XFERINFOFUNCTION ,
2960
2960
gh__curl_progress_cb );
2961
2961
curl_easy_setopt (slot -> curl , CURLOPT_XFERINFODATA , params );
2962
- curl_easy_setopt (slot -> curl , CURLOPT_NOPROGRESS , 0 );
2962
+ curl_easy_setopt (slot -> curl , CURLOPT_NOPROGRESS , 0L );
2963
2963
} else {
2964
- curl_easy_setopt (slot -> curl , CURLOPT_NOPROGRESS , 1 );
2964
+ curl_easy_setopt (slot -> curl , CURLOPT_NOPROGRESS , 1L );
2965
2965
}
2966
2966
2967
2967
gh__run_one_slot (slot , params , status );
0 commit comments