]> git.ozlabs.org Git - yaboot.git/blobdiff - second/cfg.c
Be explicit in order of evaluation in the reiserfs code
[yaboot.git] / second / cfg.c
index 21db256305724d36371ed536d935768fa545c595..2787558181a16768f957666b6f9cbc7ae720ac0a 100644 (file)
@@ -42,7 +42,6 @@ typedef struct {
 } CONFIG;
 
 #define MAX_TOKEN 511
-#define MAX_VAR_NAME MAX_TOKEN
 #define EOF -1
 
 CONFIG cf_options[] =
@@ -102,7 +101,6 @@ static char *currp = NULL;
 static char *endp = NULL;
 static char *file_name = NULL;
 static CONFIG *curr_table = cf_options;
-static int ignore_entry;
 static jmp_buf env;
 
 static struct IMAGES {
@@ -433,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
     }