about summary refs log tree commit diff
path: root/msort.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-23 00:28:44 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-23 00:28:44 +0200
commita9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d (patch)
tree057737115d28a9ba3439b204512c701f64b31413 /msort.c
parent49710409ae7c81b52fef3d8a318bf8078422f378 (diff)
downloadmblaze-a9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d.tar.gz
mblaze-a9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d.tar.xz
mblaze-a9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d.zip
msort: use blaze822_loop1
Diffstat (limited to 'msort.c')
-rw-r--r--msort.c8
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);