X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Ffmtdump.c;h=a91333b7d2a3ecbdfa0524c012bb8eace75809b2;hp=c9b28cf70a448a8c77d100d7afca88d3362d6c76;hb=1fb6287fc4986668e8f49d7c3bdca27d53e267af;hpb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c diff --git a/uip/fmtdump.c b/uip/fmtdump.c index c9b28cf..a91333b 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -89,10 +89,8 @@ main(int argc, char **argv) form = cp; } - /* - ** Get new format string. Must be before chdir(). - */ - fmtstr = new_fs(form, FORMAT); + /* Set format string. Must be before chdir(). */ + fmtstr = new_fs(form, scanformat); fmt_compile(fmtstr, &fmt); fmt_dump(fmt); @@ -103,7 +101,7 @@ static void fmt_dump(struct format *fmth) { int i; - register struct format *fmt, *addr; + struct format *fmt, *addr; /* Assign labels */ for (fmt = fmth; fmt; ++fmt) { @@ -131,7 +129,7 @@ fmt_dump(struct format *fmth) static void dumpone(struct format *fmt) { - register int i; + int i; if ((i = findlabel(fmt)) >= 0) printf("L%d:", i); @@ -312,7 +310,7 @@ dumpone(struct format *fmt) static int findlabel(struct format *addr) { - register int i; + int i; for (i = 0; i < lused; ++i) if (addr == lvec[i]) @@ -436,7 +434,7 @@ f_typestr(int t) static char * c_typestr(int t) { - register int i; + int i; static char buf[64]; buf[0] = '\0'; @@ -453,7 +451,7 @@ c_typestr(int t) static char * c_flagsstr(int t) { - register int i; + int i; static char buf[64]; buf[0] = '\0';