aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/du.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-05-10 00:21:42 -0500
committerRob Landley <rob@landley.net>2015-05-10 00:21:42 -0500
commit1f5f436826505df6dfabe1de9724424fc40fae23 (patch)
treebebeeec774350ad01c68481bda59afe6f49a3fe7 /toys/posix/du.c
parentaab9164df395a4b0878b0ad930a5ec8a806a58e9 (diff)
downloadtoybox-1f5f436826505df6dfabe1de9724424fc40fae23.tar.gz
Cleanups of dirtree_start() calls. (Don't need to feed in flag values, just
symfollow true/false.)
Diffstat (limited to 'toys/posix/du.c')
-rw-r--r--toys/posix/du.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/posix/du.c b/toys/posix/du.c
index 0dea495c..c72019e2 100644
--- a/toys/posix/du.c
+++ b/toys/posix/du.c
@@ -128,7 +128,7 @@ static int do_du(struct dirtree *node)
if (S_ISDIR(node->st.st_mode)) {
if (!node->again) {
TT.depth++;
- return DIRTREE_COMEAGAIN | (DIRTREE_SYMFOLLOW*!!(toys.optflags & FLAG_L));
+ return DIRTREE_COMEAGAIN|(DIRTREE_SYMFOLLOW*!!(toys.optflags&FLAG_L));
} else TT.depth--;
}
@@ -151,8 +151,8 @@ void du_main(void)
// Loop over command line arguments, recursing through children
for (args = toys.optc ? toys.optargs : noargs; *args; args++)
- dirtree_handle_callback(dirtree_start(*args,
- DIRTREE_SYMFOLLOW*!!(toys.optflags & (FLAG_H|FLAG_L))), do_du);
+ dirtree_handle_callback(dirtree_start(*args, toys.optflags&(FLAG_H|FLAG_L)),
+ do_du);
if (toys.optflags & FLAG_c) print(TT.total*512, 0);
if (CFG_TOYBOX_FREE) seen_inode(TT.inodes, 0);