X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Ffmtdump.c;h=a0e6e1409c35f1a4849fa8d190b94f1799354a8a;hb=ccf4f175ef4c4e7522f9510a4a1149c15d810dd9;hp=a7fe9f450d718632f593ed4687bcb2e311c7320b;hpb=43ea5347b6b445d926082d6e3c1ddec376e8692d;p=mmh diff --git a/uip/fmtdump.c b/uip/fmtdump.c index a7fe9f4..a0e6e14 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -15,7 +15,7 @@ static struct swit switches[] = { #define FORMSW 0 { "form formatfile", 0 }, #define VERSIONSW 1 - { "version", 0 }, + { "Version", 0 }, #define HELPSW 2 { "help", 0 }, { NULL, 0 } @@ -42,14 +42,11 @@ static void litputc(char); int main(int argc, char **argv) { - int ncomps; char *cp, *form = NULL; char buf[BUFSIZ], *fmtstr, **argp, **arguments; struct format *fmt; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ @@ -94,7 +91,7 @@ main(int argc, char **argv) ** Get new format string. Must be before chdir(). */ fmtstr = new_fs(form, FORMAT); - ncomps = fmt_compile(fmtstr, &fmt); + fmt_compile(fmtstr, &fmt); fmt_dump(fmt); done(0);