X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Fcfg.c;h=2787558181a16768f957666b6f9cbc7ae720ac0a;hp=4277fdd219d9923e6f52659d10bff1fdc3f948c8;hb=refs%2Fheads%2Fmaster;hpb=3901c5b44c63c5bf9f576d0dd7646241b8ee4088 diff --git a/second/cfg.c b/second/cfg.c index 4277fdd..2787558 100644 --- a/second/cfg.c +++ b/second/cfg.c @@ -42,7 +42,6 @@ typedef struct { } CONFIG; #define MAX_TOKEN 511 -#define MAX_VAR_NAME MAX_TOKEN #define EOF -1 CONFIG cf_options[] = @@ -432,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 }