diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-12-17 23:34:26 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-12-17 23:34:26 +0100 |
commit | 9583b4af9057c9e35ec3dd3270d4c4813b5f7aaa (patch) | |
tree | e50544f244a6243aec3d72a559375c17b83f25bb /docs/examples/getinmemory.c | |
parent | 8219bc9e19c78ec4617ae5311b4ea64c49763ff6 (diff) |
examples: fix compiler warnings
Diffstat (limited to 'docs/examples/getinmemory.c')
-rw-r--r-- | docs/examples/getinmemory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c index 635a936ba..85b049483 100644 --- a/docs/examples/getinmemory.c +++ b/docs/examples/getinmemory.c @@ -43,7 +43,7 @@ WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data) } -int main(int argc, char **argv) +int main(void) { CURL *curl_handle; @@ -87,7 +87,7 @@ int main(int argc, char **argv) * you're done with it, you should free() it as a nice application. */ - printf("%lu bytes retrieved\n", chunk.size); + printf("%lu bytes retrieved\n", (long)chunk.size); if(chunk.memory) free(chunk.memory); |