From f82dc817c486c26448514b4ef82d49b34a80dd25 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Tue, 10 Feb 2009 14:00:28 +1100 Subject: [PATCH 1/1] Use explicit casts when dumping config data MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit GCC pointes out that we're in a gray area second/cfg.c: In function ‘cfg_reset’: second/cfg.c:437: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘void *’ second/cfg.c:442: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘void *’ Signed-off-by: Tony Breeds --- second/cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/second/cfg.c b/second/cfg.c index 381d16b..2787558 100644 --- a/second/cfg.c +++ b/second/cfg.c @@ -431,12 +431,12 @@ static int cfg_reset () curr_table = cf_options; for (walk = curr_table; walk->type != cft_end; walk++) { #if DEBUG - prom_printf("ItemA %s = %s\n", walk->name, walk->data); + prom_printf("ItemA %s = %s\n", walk->name, (char *)walk->data); #endif if (walk->data != NULL) walk->data = NULL; #if DEBUG - prom_printf("ItemB %s = %s\n\n", walk->name, walk->data); + prom_printf("ItemB %s = %s\n\n", walk->name, (char *)walk->data); #endif } -- 2.39.2