From 1f5f436826505df6dfabe1de9724424fc40fae23 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 10 May 2015 00:21:42 -0500 Subject: Cleanups of dirtree_start() calls. (Don't need to feed in flag values, just symfollow true/false.) --- toys/posix/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/ls.c') diff --git a/toys/posix/ls.c b/toys/posix/ls.c index 3e5d3910..38db9977 100644 --- a/toys/posix/ls.c +++ b/toys/posix/ls.c @@ -329,7 +329,7 @@ static void listfiles(int dirfd, struct dirtree *indir) } else { // Read directory contents. We dup() the fd because this will close it. indir->data = dup(dirfd); - dirtree_recurse(indir, filter, (flags&FLAG_L) ? DIRTREE_SYMFOLLOW : 0); + dirtree_recurse(indir, filter, DIRTREE_SYMFOLLOW*!!(flags&FLAG_L)); } // Copy linked list to array and sort it. Directories go in array because -- cgit v1.2.3