Fix params.c build warnings
authorGeoff Levand <geoff@infradead.org>
Sun, 4 Dec 2011 22:49:54 +0000 (14:49 -0800)
committerGeoff Levand <geoff@infradead.org>
Mon, 5 Dec 2011 00:15:00 +0000 (16:15 -0800)
Fixes warnings like these:
  warning: no previous prototype

Signed-off-by: Geoff Levand <geoff@infradead.org>
discover/params.c

index d78730a0ef0253e7a0a5ab8a502a7b31142a7b6e..3c790997ff8ce915bb971b1d9714a214c1103679 100644 (file)
 #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;