aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/getinmemory.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-07-08 16:44:32 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-07-09 18:08:27 +0200
commit5bd8c389a3625e5c3eed265942d4c5b1e7e5d117 (patch)
tree83224097b09c5b12fe76ac9765fa97cf47339166 /docs/examples/getinmemory.c
parentba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628 (diff)
examples: fix -Wformat warnings
When size_t is not a typedef for unsigned long (as usually the case on Windows), GCC emits -Wformat warnings when using lu and lx format specifiers with size_t. Silence them with explicit casts to unsigned long. Closes https://github.com/curl/curl/pull/2721
Diffstat (limited to 'docs/examples/getinmemory.c')
-rw-r--r--docs/examples/getinmemory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c
index 776bbd21a..f5e8942f8 100644
--- a/docs/examples/getinmemory.c
+++ b/docs/examples/getinmemory.c
@@ -100,7 +100,7 @@ int main(void)
* Do something nice with it!
*/
- printf("%lu bytes retrieved\n", chunk.size);
+ printf("%lu bytes retrieved\n", (unsigned long)chunk.size);
}
/* cleanup curl stuff */