summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2011-12-04 14:49:54 -0800
committerGeoff Levand <geoff@infradead.org>2011-12-04 16:15:00 -0800
commit402b446414b71e2052e08a7a879c88493f72c856 (patch)
treeb84f3fc617a9e5e7518abf9f8b7afacaad29e788 /discover
parent7ae27b653f50bddf2d20828a17da224d6eab5ed4 (diff)
downloadtalos-petitboot-402b446414b71e2052e08a7a879c88493f72c856.tar.gz
talos-petitboot-402b446414b71e2052e08a7a879c88493f72c856.zip
Fix params.c build warnings
Fixes warnings like these: warning: no previous prototype Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/params.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud