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/httpput.c | |
parent | 40c27e299f97e36c4c2ecc697397f5626737513b (diff) | |
download | gnurl-ba52e0a93bbdfa0430d12cda14d4ed71616b92a1.tar.gz gnurl-ba52e0a93bbdfa0430d12cda14d4ed71616b92a1.tar.bz2 gnurl-ba52e0a93bbdfa0430d12cda14d4ed71616b92a1.zip |
Added a workaround for printing size_t.
Diffstat (limited to 'docs/examples/httpput.c')
-rw-r--r-- | docs/examples/httpput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/httpput.c b/docs/examples/httpput.c index f78a74107..664c8e152 100644 --- a/docs/examples/httpput.c +++ b/docs/examples/httpput.c @@ -25,6 +25,7 @@ #include <unistd.h> #include <curl/curl.h> +#include "printf_macro.h" /* * This example shows a HTTP PUT operation. PUTs a file given as a command @@ -45,7 +46,7 @@ static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream) by default internally */ retcode = fread(ptr, size, nmemb, stream); - fprintf(stderr, "*** We read %d bytes from file\n", retcode); + fprintf(stderr, "*** We read %" _FMT_SIZE_T " bytes from file\n", retcode); return retcode; } |