X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsortm.c;h=c7f5396487fdf3037ce26780e6215789e33c40d1;hb=e804a366f5091e90f1c0971e2b7546df69f1315a;hp=398045b4941781eb4045993ccac0aa1a4bd3d661;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/uip/sortm.c b/uip/sortm.c index 398045b..c7f5396 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -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