about summary refs log tree commit diff
path: root/mthread.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-23 00:29:11 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-23 00:29:11 +0200
commit8855568c1902f824ecbe1fe345a3777e44ab9bda (patch)
tree2dfa8af300026fdc7b2b60955ecd339e7ba35aa8 /mthread.c
parenta9e51a214bd37f9a2c2b30e6985ab43d53cb7f9d (diff)
downloadmblaze-8855568c1902f824ecbe1fe345a3777e44ab9bda.tar.gz
mblaze-8855568c1902f824ecbe1fe345a3777e44ab9bda.tar.xz
mblaze-8855568c1902f824ecbe1fe345a3777e44ab9bda.zip
mthread: use blaze822_loop1
Diffstat (limited to 'mthread.c')
-rw-r--r--mthread.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mthread.c b/mthread.c
index 6016199..b6744ad 100644
--- a/mthread.c
+++ b/mthread.c
@@ -374,12 +374,10 @@ main(int argc, char *argv[])
  			exit(1);
  		}
 
-	if (argc == optind && isatty(0)) {
-		char *all[] = { ":" };
-		i = blaze822_loop(1, all, thread);
-	} else {
+	if (argc == optind && isatty(0))
+		i = blaze822_loop1(":", thread);
+	else
 		i = blaze822_loop(argc-optind, argv+optind, thread);
-	}
 
 	find_roots();
 	if (!vflag)