Renamed -version switch to -Version to remove the conflict with -verbose.
[mmh] / uip / fmtdump.c
index a7fe9f4..fc94247 100644 (file)
@@ -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,7 +42,6 @@ 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;
@@ -94,7 +93,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);