libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 2ef99ee6e9f1b5515254bbdc75357b8832b977d7
parent fa7d473f0e0d1ebce709f4e2cb8029e323eed6a6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 17 Mar 2009 21:05:25 +0000

64-bit fixes from Richard Alimi

Diffstat:
Msrc/daemon/connection.c | 2+-
Msrc/examples/authorization_example.c | 2+-
Msrc/examples/minimal_example.c | 2+-
Msrc/examples/querystring_example.c | 2+-
Msrc/examples/refuse_post_example.c | 2+-
Msrc/testcurl/daemontest_large_put.c | 6+++---
6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/daemon/connection.c b/src/daemon/connection.c @@ -472,7 +472,7 @@ add_extra_headers (struct MHD_Connection *connection) { SPRINTF (buf, "%llu", - connection->response->total_size); + (unsigned long long)connection->response->total_size); MHD_add_response_header (connection->response, MHD_HTTP_HEADER_CONTENT_LENGTH, buf); } diff --git a/src/examples/authorization_example.c b/src/examples/authorization_example.c @@ -38,7 +38,7 @@ ahc_echo (void *cls, const char *url, const char *method, const char *version, - const char *upload_data, unsigned int *upload_data_size, void **ptr) + const char *upload_data, size_t *upload_data_size, void **ptr) { static int aptr; const char *me = cls; diff --git a/src/examples/minimal_example.c b/src/examples/minimal_example.c @@ -33,7 +33,7 @@ ahc_echo (void *cls, const char *url, const char *method, const char *version, - const char *upload_data, unsigned int *upload_data_size, void **ptr) + const char *upload_data, size_t *upload_data_size, void **ptr) { static int aptr; const char *me = cls; diff --git a/src/examples/querystring_example.c b/src/examples/querystring_example.c @@ -34,7 +34,7 @@ ahc_echo (void *cls, const char *url, const char *method, const char *version, - const char *upload_data, unsigned int *upload_data_size, void **ptr) + const char *upload_data, size_t *upload_data_size, void **ptr) { static int aptr; const char *fmt = cls; diff --git a/src/examples/refuse_post_example.c b/src/examples/refuse_post_example.c @@ -39,7 +39,7 @@ ahc_echo (void *cls, const char *url, const char *method, const char *version, - const char *upload_data, unsigned int *upload_data_size, void **ptr) + const char *upload_data, size_t *upload_data_size, void **ptr) { static int aptr; const char *me = cls; diff --git a/src/testcurl/daemontest_large_put.c b/src/testcurl/daemontest_large_put.c @@ -237,7 +237,7 @@ testMultithreadedPut () MHD_stop_daemon (d); if (cbc.pos != strlen ("/hello_world")) { - fprintf (stderr, "Got invalid response `%.*s'\n", cbc.pos, cbc.buf); + fprintf (stderr, "Got invalid response `%.*s'\n", (int)cbc.pos, cbc.buf); return 64; } if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) @@ -297,7 +297,7 @@ testMultithreadedPoolPut () MHD_stop_daemon (d); if (cbc.pos != strlen ("/hello_world")) { - fprintf (stderr, "Got invalid response `%.*s'\n", cbc.pos, cbc.buf); + fprintf (stderr, "Got invalid response `%.*s'\n", (int)cbc.pos, cbc.buf); return 64; } if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) @@ -431,7 +431,7 @@ testExternalPut () MHD_stop_daemon (d); if (cbc.pos != strlen ("/hello_world")) { - fprintf (stderr, "Got invalid response `%.*s'\n", cbc.pos, cbc.buf); + fprintf (stderr, "Got invalid response `%.*s'\n", (int)cbc.pos, cbc.buf); return 8192; } if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))