Added a workaround for printing size_t.

This commit is contained in:
Guenter Knauf 2011-09-23 01:22:18 +02:00
parent 40c27e299f
commit ba52e0a93b
5 changed files with 53 additions and 4 deletions

View file

@ -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 */