X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fconf-dump.c;h=0d4092400f52b0da6632885594de3a38b47afcd3;hb=3c3f355f29b9a5706c09829f33bf937385aac3be;hp=f4af30ac626514b0e883403b80274005807c866e;hpb=87042bd667431f65ea838e70f80d915821380ff9;p=libucw.git diff --git a/lib/conf-dump.c b/lib/conf-dump.c index f4af30ac..0d409240 100644 --- a/lib/conf-dump.c +++ b/lib/conf-dump.c @@ -31,12 +31,12 @@ dump_basic(struct fastbuf *fb, void *ptr, enum cf_type type, union cf_union *u) case CT_DOUBLE: bprintf(fb, "%lg ", *(double*)ptr); break; case CT_IP: bprintf(fb, "%08x ", *(uns*)ptr); break; case CT_STRING: - if (*(byte**)ptr) - bprintf(fb, "'%s' ", *(byte**)ptr); + if (*(char**)ptr) + bprintf(fb, "'%s' ", *(char**)ptr); else bprintf(fb, "NULL "); break; - case CT_LOOKUP: bprintf(fb, "%s ", *(int*)ptr >= 0 ? u->lookup[ *(int*)ptr ] : (byte*) "???"); break; + case CT_LOOKUP: bprintf(fb, "%s ", *(int*)ptr >= 0 ? u->lookup[ *(int*)ptr ] : "???"); break; case CT_USER: if (u->utype->dumper) u->utype->dumper(fb, ptr); @@ -48,7 +48,7 @@ dump_basic(struct fastbuf *fb, void *ptr, enum cf_type type, union cf_union *u) static void dump_section(struct fastbuf *fb, struct cf_section *sec, int level, void *ptr); -static byte *class_names[] = { "end", "static", "dynamic", "parser", "section", "list", "bitmap" }; +static char *class_names[] = { "end", "static", "dynamic", "parser", "section", "list", "bitmap" }; static void dump_item(struct fastbuf *fb, struct cf_item *item, int level, void *ptr)