From 402b446414b71e2052e08a7a879c88493f72c856 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Sun, 4 Dec 2011 14:49:54 -0800 Subject: Fix params.c build warnings Fixes warnings like these: warning: no previous prototype Signed-off-by: Geoff Levand --- discover/params.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discover/params.c') 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; -- cgit v1.2.1