]> git.ozlabs.org Git - petitboot/blobdiff - discover/params.c
Fix params.c build warnings
[petitboot] / discover / params.c
index 76a14514912804a829d4c2769c6dfed745179192..3c790997ff8ce915bb971b1d9714a214c1103679 100644 (file)
 #define realloc_array(ptr, type, num) \
        ((type *)_realloc_array((ptr), sizeof(type), (num)))
 
-#define rprintf(x, ...) do { fprintf(stderr, ##__VA_ARGS__);   \
-                               fprintf(stderr, "\n"); } while (0)
-#define rsyserr(x, y, ...) do { fprintf(stderr, ##__VA_ARGS__);        \
-                               fprintf(stderr, "\n"); } while (0)
+#define rprintf(x, ...) do { pb_log(stderr, ##__VA_ARGS__);    \
+                               pb_log(stderr, "\n"); } while (0)
+#define rsyserr(x, y, ...) do { pb_log(stderr, ##__VA_ARGS__); \
+                               pb_log(stderr, "\n"); } while (0)
 
 #define MALLOC_MAX 0x40000000
 #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;