@@ -1576,9 +1576,9 @@ struct active_request_slot *get_active_slot(void)
1576
1576
curl_easy_setopt (slot -> curl , CURLOPT_WRITEFUNCTION , NULL );
1577
1577
curl_easy_setopt (slot -> curl , CURLOPT_POSTFIELDS , NULL );
1578
1578
curl_easy_setopt (slot -> curl , CURLOPT_POSTFIELDSIZE , -1L );
1579
- curl_easy_setopt (slot -> curl , CURLOPT_UPLOAD , 0 );
1580
- curl_easy_setopt (slot -> curl , CURLOPT_HTTPGET , 1 );
1581
- curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , 1 );
1579
+ curl_easy_setopt (slot -> curl , CURLOPT_UPLOAD , 0L );
1580
+ curl_easy_setopt (slot -> curl , CURLOPT_HTTPGET , 1L );
1581
+ curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , 1L );
1582
1582
curl_easy_setopt (slot -> curl , CURLOPT_RANGE , NULL );
1583
1583
1584
1584
/*
@@ -1587,9 +1587,9 @@ struct active_request_slot *get_active_slot(void)
1587
1587
* HTTP_FOLLOW_* cases themselves.
1588
1588
*/
1589
1589
if (http_follow_config == HTTP_FOLLOW_ALWAYS )
1590
- curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 1 );
1590
+ curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 1L );
1591
1591
else
1592
- curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 0 );
1592
+ curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 0L );
1593
1593
1594
1594
curl_easy_setopt (slot -> curl , CURLOPT_IPRESOLVE , git_curl_ipresolve );
1595
1595
curl_easy_setopt (slot -> curl , CURLOPT_HTTPAUTH , http_auth_methods );
@@ -2156,12 +2156,12 @@ static int http_request(const char *url,
2156
2156
int ret ;
2157
2157
2158
2158
slot = get_active_slot ();
2159
- curl_easy_setopt (slot -> curl , CURLOPT_HTTPGET , 1 );
2159
+ curl_easy_setopt (slot -> curl , CURLOPT_HTTPGET , 1L );
2160
2160
2161
2161
if (!result ) {
2162
- curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 1 );
2162
+ curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 1L );
2163
2163
} else {
2164
- curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 0 );
2164
+ curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 0L );
2165
2165
curl_easy_setopt (slot -> curl , CURLOPT_WRITEDATA , result );
2166
2166
2167
2167
if (target == HTTP_REQUEST_FILE ) {
@@ -2187,7 +2187,7 @@ static int http_request(const char *url,
2187
2187
strbuf_addstr (& buf , " no-cache" );
2188
2188
if (options && options -> initial_request &&
2189
2189
http_follow_config == HTTP_FOLLOW_INITIAL )
2190
- curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 1 );
2190
+ curl_easy_setopt (slot -> curl , CURLOPT_FOLLOWLOCATION , 1L );
2191
2191
2192
2192
headers = curl_slist_append (headers , buf .buf );
2193
2193
@@ -2206,7 +2206,7 @@ static int http_request(const char *url,
2206
2206
curl_easy_setopt (slot -> curl , CURLOPT_URL , url );
2207
2207
curl_easy_setopt (slot -> curl , CURLOPT_HTTPHEADER , headers );
2208
2208
curl_easy_setopt (slot -> curl , CURLOPT_ENCODING , "" );
2209
- curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , 0 );
2209
+ curl_easy_setopt (slot -> curl , CURLOPT_FAILONERROR , 0L );
2210
2210
2211
2211
ret = run_one_slot (slot , & results );
2212
2212
@@ -2786,7 +2786,7 @@ struct http_object_request *new_http_object_request(const char *base_url,
2786
2786
freq -> headers = object_request_headers ();
2787
2787
2788
2788
curl_easy_setopt (freq -> slot -> curl , CURLOPT_WRITEDATA , freq );
2789
- curl_easy_setopt (freq -> slot -> curl , CURLOPT_FAILONERROR , 0 );
2789
+ curl_easy_setopt (freq -> slot -> curl , CURLOPT_FAILONERROR , 0L );
2790
2790
curl_easy_setopt (freq -> slot -> curl , CURLOPT_WRITEFUNCTION , fwrite_sha1_file );
2791
2791
curl_easy_setopt (freq -> slot -> curl , CURLOPT_ERRORBUFFER , freq -> errorstr );
2792
2792
curl_easy_setopt (freq -> slot -> curl , CURLOPT_URL , freq -> url );
0 commit comments