diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-23 00:28:44 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-23 00:28:44 +0200 |
commit | a9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d (patch) | |
tree | 057737115d28a9ba3439b204512c701f64b31413 | |
parent | 49710409ae7c81b52fef3d8a318bf8078422f378 (diff) | |
download | mblaze-a9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d.tar.gz mblaze-a9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d.tar.xz mblaze-a9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d.zip |
msort: use blaze822_loop1
-rw-r--r-- | msort.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/msort.c b/msort.c index e1bd70d..1526a05 100644 --- a/msort.c +++ b/msort.c @@ -298,12 +298,10 @@ main(int argc, char *argv[]) if (!mails) exit(-1); - if (argc == optind && isatty(0)) { - char *all[] = { ":" }; - blaze822_loop(1, all, add); - } else { + if (argc == optind && isatty(0)) + blaze822_loop1(":", add); + else blaze822_loop(argc-optind, argv+optind, add); - } qsort(mails, idx, sizeof (struct mail), sortorder); |