From 876b9da17f37102985f9493ba75ecaaa34429a83 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Sat, 26 Dec 2015 15:37:41 +0100 Subject: walk_tree_rec: Add parentheses to clarify code Make the conditional easier to read. Signed-off-by: Andreas Gruenbacher --- libmisc/walk_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmisc/walk_tree.c b/libmisc/walk_tree.c index d753dc7..0a6af1e 100644 --- a/libmisc/walk_tree.c +++ b/libmisc/walk_tree.c @@ -102,8 +102,8 @@ static int walk_tree_rec(const char *path, int walk_flags, * a link and follow_symlinks */ if ((flags & WALK_TREE_RECURSIVE) && - (!(flags & WALK_TREE_SYMLINK) && S_ISDIR(st.st_mode)) || - ((flags & WALK_TREE_SYMLINK) && follow_symlinks)) { + ((!(flags & WALK_TREE_SYMLINK) && S_ISDIR(st.st_mode)) || + ((flags & WALK_TREE_SYMLINK) && follow_symlinks))) { struct dirent *entry; /* -- cgit v1.2.1