From 4706a9334149f656eef9b5e8888da1ead23b0941 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Mon, 16 Jul 2007 21:22:12 +0000 Subject: Fixed some more simple compile warnings in the examples. --- docs/examples/getinmemory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/getinmemory.c') diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c index 00ed39eb2..e80aa4165 100644 --- a/docs/examples/getinmemory.c +++ b/docs/examples/getinmemory.c @@ -26,7 +26,7 @@ struct MemoryStruct { size_t size; }; -void *myrealloc(void *ptr, size_t size) +static void *myrealloc(void *ptr, size_t size) { /* There might be a realloc() out there that doesn't like reallocing NULL pointers, so we take care of it here */ @@ -36,7 +36,7 @@ void *myrealloc(void *ptr, size_t size) return malloc(size); } -size_t +static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data) { size_t realsize = size * nmemb; -- cgit v1.2.3