aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/sendrecv.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/sendrecv.c')
-rw-r--r--docs/examples/sendrecv.c3
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 */