Whoever originally added the -help switch to all the commands got too cute and
[mmh] / uip / sortm.c
index 398045b..3ac2e3f 100644 (file)
@@ -35,7 +35,7 @@ static struct swit switches[] = {
 #define VERSIONSW              8
      { "version", 0 },
 #define HELPSW                 9
-     { "help", 4 },
+     { "help", 0 },
      { NULL, 0 }
 };
 
@@ -226,13 +226,14 @@ main (int argc, char **argv)
        dlist[i] = &smsgs[i];
     dlist[nmsgs] = 0;
 
-    if (verbose)       /* announce what we're doing */
+    if (verbose) {     /* announce what we're doing */
        if (subjsort)
            printf ("sorting by %s-major %s-minor\n", 
                submajor ? subjsort : datesw,
                submajor ? datesw : subjsort);
        else
            printf ("sorting by datefield %s\n", datesw);
+    }
 
     /* first sort by date, or by subject-major, date-minor */
     qsort ((char *) dlist, nmsgs, sizeof(*dlist), 
@@ -304,7 +305,7 @@ main (int argc, char **argv)
     seq_save (mp);                     /* synchronize message sequences */
     context_save ();                   /* save the context file         */
     folder_free (mp);                  /* free folder/message structure */
-    done (0);
+    return done (0);
 }
 
 static int