From 8f122ed62ffcd0508d857393e6809f2581cf790e Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Sun, 4 Dec 2011 15:02:31 -0800 Subject: [PATCH] Fix params.c logging MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes build warnings like these: implicit declaration of function ‘pb_log’ Signed-off-by: Geoff Levand --- discover/params.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discover/params.c b/discover/params.c index 3c79099..09c2b0f 100644 --- a/discover/params.c +++ b/discover/params.c @@ -22,16 +22,16 @@ #include #include +#include + #include "params.h" #define new_array(type, num) ((type *)_new_array(sizeof(type), (num))) #define realloc_array(ptr, type, num) \ ((type *)_realloc_array((ptr), sizeof(type), (num))) -#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 rprintf(x, ...) do {pb_log(__VA_ARGS__); pb_log("\n");} while (0) +#define rsyserr(x, y, ...) do {pb_log(__VA_ARGS__); pb_log("\n");} while (0) #define MALLOC_MAX 0x40000000 #define False 0 -- 2.39.2