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 <tony@bakeyournoodle.com>
curr_table = cf_options;
for (walk = curr_table; walk->type != cft_end; walk++) {
#if DEBUG
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
#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);