Skip to content

Commit 2e825dd

Browse files
committed
[mod_http_cache] Fix error: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
1 parent 5d5104f commit 2e825dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mod/applications/mod_http_cache/mod_http_cache.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,10 +1131,10 @@ static switch_status_t http_get(url_cache_t *cache, http_profile_t *profile, cac
11311131
#else
11321132
if ((get_data.fd = open(get_data.url->filename, O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR)) > -1) {
11331133
#endif
1134-
switch_curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1);
1135-
switch_curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 10);
1136-
switch_curl_easy_setopt(curl_handle, CURLOPT_FAILONERROR, 1);
1137-
switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
1134+
switch_curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, (long)1);
1135+
switch_curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, (long)10);
1136+
switch_curl_easy_setopt(curl_handle, CURLOPT_FAILONERROR, (long)1);
1137+
switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, (long)1);
11381138
if (headers) {
11391139
switch_curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER, headers);
11401140
}

0 commit comments

Comments
 (0)