diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-02-06 06:12:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-02-06 06:12:33 +0000 |
commit | b90c37b2f38d97952613e26627b3e8ebf9932112 (patch) | |
tree | 6f4cd17446da6dcf96ed53679e7c5b42e8c02869 /src/testcurl/daemontest_get_chunked.c | |
parent | 8c8db696a0b7974b432100b8f4466f11163b66cc (diff) | |
download | libmicrohttpd-b90c37b2f38d97952613e26627b3e8ebf9932112.tar.gz libmicrohttpd-b90c37b2f38d97952613e26627b3e8ebf9932112.zip |
incompatible API change to allow 64-bit uploads and downloads on 32-bit systems
Diffstat (limited to 'src/testcurl/daemontest_get_chunked.c')
-rw-r--r-- | src/testcurl/daemontest_get_chunked.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testcurl/daemontest_get_chunked.c b/src/testcurl/daemontest_get_chunked.c index ab53545c..794430e8 100644 --- a/src/testcurl/daemontest_get_chunked.c +++ b/src/testcurl/daemontest_get_chunked.c | |||
@@ -29,6 +29,7 @@ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "MHD_config.h" | 31 | #include "MHD_config.h" |
32 | #include "platform.h" | ||
32 | #include <curl/curl.h> | 33 | #include <curl/curl.h> |
33 | #include <microhttpd.h> | 34 | #include <microhttpd.h> |
34 | #include <stdlib.h> | 35 | #include <stdlib.h> |
@@ -63,7 +64,7 @@ copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx) | |||
63 | * data in chunks. | 64 | * data in chunks. |
64 | */ | 65 | */ |
65 | static int | 66 | static int |
66 | crc (void *cls, size_t pos, char *buf, int max) | 67 | crc (void *cls, uint64_t pos, char *buf, int max) |
67 | { | 68 | { |
68 | struct MHD_Response **responseptr = cls; | 69 | struct MHD_Response **responseptr = cls; |
69 | 70 | ||
@@ -93,7 +94,7 @@ ahc_echo (void *cls, | |||
93 | const char *url, | 94 | const char *url, |
94 | const char *method, | 95 | const char *method, |
95 | const char *version, | 96 | const char *version, |
96 | const char *upload_data, unsigned int *upload_data_size, void **ptr) | 97 | const char *upload_data, size_t *upload_data_size, void **ptr) |
97 | { | 98 | { |
98 | static int aptr; | 99 | static int aptr; |
99 | const char *me = cls; | 100 | const char *me = cls; |