]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9488 #resolve [Compile error mod_http_cache]
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Sep 2016 21:55:44 +0000 (16:55 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Sep 2016 21:55:44 +0000 (16:55 -0500)
src/mod/applications/mod_http_cache/azure.c
src/mod/applications/mod_http_cache/mod_http_cache.c

index 9dd2d40d4dec3c0193b10269ee4b287be70656e4..61a2b2fd9570e4ec40485734cb58e0ba1a580df9 100644 (file)
@@ -287,7 +287,7 @@ switch_status_t azure_blob_finalise_put(http_profile_t *profile, const char *url
        upload_info.size_left = strlen(xmlDoc);
        switch_curl_easy_setopt(curl_handle, CURLOPT_READFUNCTION, curl_memory_read_callback);
        switch_curl_easy_setopt(curl_handle, CURLOPT_READDATA, &upload_info);
-       switch_curl_easy_setopt(curl_handle, CURLOPT_INFILESIZE_LARGE, strlen(xmlDoc));
+       switch_curl_easy_setopt(curl_handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)strlen(xmlDoc));
 
        //NB. we ignore connect_timeout, ssl_verifypeer, ssl_cacert, ssl_verifyhost cache options
 
index 62801790fc6469b34db2bdfc596edd52ab3889fb..92c88e54b99e6697af64086e3052164f184f0850 100644 (file)
@@ -363,7 +363,7 @@ static switch_status_t http_put(url_cache_t *cache, http_profile_t *profile, swi
                switch_curl_easy_setopt(curl_handle, CURLOPT_READFUNCTION, read_callback);
                switch_curl_easy_setopt(curl_handle, CURLOPT_READDATA, &block_info);
 
-               switch_curl_easy_setopt(curl_handle, CURLOPT_INFILESIZE_LARGE, content_length);
+               switch_curl_easy_setopt(curl_handle, CURLOPT_INFILESIZE_LARGE,(curl_off_t) content_length);
                switch_curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1);
                switch_curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 10);
                switch_curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "freeswitch-http-cache/1.0");