diff options
author | Guenter Knauf <lists@gknw.net> | 2011-09-23 01:22:18 +0200 |
---|---|---|
committer | Guenter Knauf <lists@gknw.net> | 2011-09-23 02:16:20 +0200 |
commit | ba52e0a93bbdfa0430d12cda14d4ed71616b92a1 (patch) | |
tree | 7231d966e216e75051b786c401c904085bfa52ac /docs/examples/sendrecv.c | |
parent | 40c27e299f97e36c4c2ecc697397f5626737513b (diff) |
Added a workaround for printing size_t.
Diffstat (limited to 'docs/examples/sendrecv.c')
-rw-r--r-- | docs/examples/sendrecv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/sendrecv.c b/docs/examples/sendrecv.c index 0a49f2ff5..369601d16 100644 --- a/docs/examples/sendrecv.c +++ b/docs/examples/sendrecv.c @@ -24,6 +24,7 @@ #include <stdio.h> #include <string.h> #include <curl/curl.h> +#include "printf_macro.h" /* Auxiliary function that waits on the socket. */ static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms) @@ -122,7 +123,7 @@ int main(void) if(CURLE_OK != res) break; - printf("Received %u bytes.\n", iolen); + printf("Received %" _FMT_SIZE_T " bytes.\n", iolen); } /* always cleanup */ |