From: Geoff Levand Date: Sun, 4 Dec 2011 22:49:54 +0000 (-0800) Subject: Fix params.c build warnings X-Git-Tag: v1.0.0~808 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=402b446414b71e2052e08a7a879c88493f72c856;ds=sidebyside Fix params.c build warnings Fixes warnings like these: warning: no previous prototype Signed-off-by: Geoff Levand --- diff --git a/discover/params.c b/discover/params.c index d78730a..3c79099 100644 --- a/discover/params.c +++ b/discover/params.c @@ -37,14 +37,14 @@ #define False 0 #define True 1 -void *_new_array(unsigned int size, unsigned long num) +static void *_new_array(unsigned int size, unsigned long num) { if (num >= MALLOC_MAX/size) return NULL; return malloc(size * num); } -void *_realloc_array(void *ptr, unsigned int size, unsigned long num) +static void *_realloc_array(void *ptr, unsigned int size, unsigned long num) { if (num >= MALLOC_MAX/size) return NULL;