diff options
author | Geoff Levand <geoff@infradead.org> | 2011-12-04 14:49:54 -0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2011-12-04 16:15:00 -0800 |
commit | 402b446414b71e2052e08a7a879c88493f72c856 (patch) | |
tree | b84f3fc617a9e5e7518abf9f8b7afacaad29e788 /discover/params.c | |
parent | 7ae27b653f50bddf2d20828a17da224d6eab5ed4 (diff) | |
download | petitboot-402b446414b71e2052e08a7a879c88493f72c856.zip petitboot-402b446414b71e2052e08a7a879c88493f72c856.tar.gz |
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/params.c')
-rw-r--r-- | discover/params.c | 4 |
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; |