From 141ed8ca09e0650879d2333ecce19ff1b339b895 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Mon, 8 May 2017 19:59:46 +0200 Subject: 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. --- tests/libtest/lib555.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/libtest/lib555.c') diff --git a/tests/libtest/lib555.c b/tests/libtest/lib555.c index e84af87e5..8156a95e7 100644 --- a/tests/libtest/lib555.c +++ b/tests/libtest/lib555.c @@ -98,7 +98,7 @@ int test(char *URL) easy_setopt(curl, CURLOPT_READDATA, &counter); /* We CANNOT do the POST fine without setting the size (or choose chunked)! */ - easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(UPLOADTHIS)); + easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(UPLOADTHIS)); easy_setopt(curl, CURLOPT_POST, 1L); #ifdef CURL_DOES_CONVERSIONS -- cgit v1.2.3