summaryrefslogtreecommitdiff
path: root/tests/libtest/lib1527.c
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-05-08 19:59:46 +0200
committerMarcel Raad <raad@teamviewer.com>2017-05-08 19:59:46 +0200
commit141ed8ca09e0650879d2333ecce19ff1b339b895 (patch)
tree1bea5ea4850129bb17a03203023d4e747ca6399e /tests/libtest/lib1527.c
parent78007305203140162f567fd611182cfc41ac51dd (diff)
downloadcurl-141ed8ca09e0650879d2333ecce19ff1b339b895.tar.gz
libtest: fix MinGW-w64 warnings
long is 32 bits while size_t is 64 bits on MinGW-w64, so typecheck-gcc.h complains when using size_t for a long option. Also, curl_socket_t is unsigned long long rather than int.
Diffstat (limited to 'tests/libtest/lib1527.c')
-rw-r--r--tests/libtest/lib1527.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/lib1527.c b/tests/libtest/lib1527.c
index 5dec7fcc0..689839e3d 100644
--- a/tests/libtest/lib1527.c
+++ b/tests/libtest/lib1527.c
@@ -83,7 +83,7 @@ int test(char *URL)
test_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite);
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
test_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1L);
- test_setopt(curl, CURLOPT_INFILESIZE, strlen(data));
+ test_setopt(curl, CURLOPT_INFILESIZE, (long)strlen(data));
test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED);
res = curl_easy_perform(curl);