From a9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 23 Jul 2016 00:28:44 +0200 Subject: msort: use blaze822_loop1 --- msort.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'msort.c') 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); -- cgit 1.4.1