Changeset: 40a99a15d18f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/40a99a15d18f
Modified Files:
        clients/mapiclient/curl-stream.h
        clients/mapiclient/mclient.c
Branch: Mar2025
Log Message:

curl_easy_setopt expects a long argument in certain cases.


diffs (32 lines):

diff --git a/clients/mapiclient/curl-stream.h b/clients/mapiclient/curl-stream.h
--- a/clients/mapiclient/curl-stream.h
+++ b/clients/mapiclient/curl-stream.h
@@ -53,9 +53,9 @@ open_urlstream(const char *url, char *er
        if ((ret = curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, errbuf)) != 
CURLE_OK ||
            (ret = curl_easy_setopt(handle, CURLOPT_URL, url)) != CURLE_OK ||
            (ret = curl_easy_setopt(handle, CURLOPT_WRITEDATA, s)) != CURLE_OK 
||
-           (ret = curl_easy_setopt(handle, CURLOPT_VERBOSE, 0)) != CURLE_OK ||
-           (ret = curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1)) != CURLE_OK ||
-           (ret = curl_easy_setopt(handle, CURLOPT_FAILONERROR, 1)) != 
CURLE_OK ||
+           (ret = curl_easy_setopt(handle, CURLOPT_VERBOSE, 0L)) != CURLE_OK ||
+           (ret = curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1L)) != CURLE_OK 
||
+           (ret = curl_easy_setopt(handle, CURLOPT_FAILONERROR, 1L)) != 
CURLE_OK ||
            (ret = curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, 
write_callback)) != CURLE_OK ||
            (ret = curl_easy_perform(handle)) != CURLE_OK) {
                curl_easy_cleanup(handle);
diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -3191,9 +3191,9 @@ open_urlstream(const char *url, char *er
        if ((ret = curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, errbuf)) != 
CURLE_OK ||
            (ret = curl_easy_setopt(handle, CURLOPT_URL, url)) != CURLE_OK ||
            (ret = curl_easy_setopt(handle, CURLOPT_WRITEDATA, s)) != CURLE_OK 
||
-           (ret = curl_easy_setopt(handle, CURLOPT_VERBOSE, 0)) != CURLE_OK ||
-           (ret = curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1)) != CURLE_OK ||
-           (ret = curl_easy_setopt(handle, CURLOPT_FAILONERROR, 1)) != 
CURLE_OK ||
+           (ret = curl_easy_setopt(handle, CURLOPT_VERBOSE, 0L)) != CURLE_OK ||
+           (ret = curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1L)) != CURLE_OK 
||
+           (ret = curl_easy_setopt(handle, CURLOPT_FAILONERROR, 1L)) != 
CURLE_OK ||
            (ret = curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, 
write_callback)) != CURLE_OK ||
            (ret = curl_easy_perform(handle)) != CURLE_OK) {
                curl_easy_cleanup(handle);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to