mirror of
https://github.com/curl/curl.git
synced 2026-07-24 19:07:17 +03:00
tidy-up: misc
- lib1531: fix to use `curl_off_t`. - src/tool_doswin: merge `_WIN32` guards. - src/tool_doswin: limit `S_ISCHR()` to MS-DOS. - src: dedupe `CURL_O_BINARY` macro into `tool_setup.h`. - CMake/CurlTests.c: cleanup/formatting `HAVE_FILE_OFFSET_BITS` test. - examples/httpput-postfields: delete unused include. - spelling: MultiSSL. - whitespace. Ref: #15652 Closes #15799
This commit is contained in:
parent
415741ef94
commit
7a70b46481
11 changed files with 29 additions and 39 deletions
|
|
@ -31,7 +31,7 @@
|
|||
#define TEST_HANG_TIMEOUT 60 * 1000
|
||||
|
||||
static char const testData[] = ".abc\0xyz";
|
||||
static off_t const testDataSize = sizeof(testData) - 1;
|
||||
static curl_off_t const testDataSize = sizeof(testData) - 1;
|
||||
|
||||
CURLcode test(char *URL)
|
||||
{
|
||||
|
|
@ -57,8 +57,7 @@ CURLcode test(char *URL)
|
|||
|
||||
/* set the options (I left out a few, you'll get the point anyway) */
|
||||
curl_easy_setopt(easy, CURLOPT_URL, URL);
|
||||
curl_easy_setopt(easy, CURLOPT_POSTFIELDSIZE_LARGE,
|
||||
(curl_off_t)testDataSize);
|
||||
curl_easy_setopt(easy, CURLOPT_POSTFIELDSIZE_LARGE, testDataSize);
|
||||
curl_easy_setopt(easy, CURLOPT_POSTFIELDS, testData);
|
||||
|
||||
/* we start some action by calling perform right away */
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
#include "curl_printf.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define sleep(sec) Sleep ((sec)*1000)
|
||||
#define sleep(sec) Sleep((sec)*1000)
|
||||
#endif
|
||||
|
||||
#define test_setopt(A,B,C) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue