diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2015-12-26 15:44:01 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2015-12-26 15:45:01 +0100 |
commit | 5b210085cf66ef70ac8e1ca765e0f2e24fc38406 (patch) | |
tree | f3c083ddc4752f76c4a47f274bff23758990e7c6 | |
parent | efa0b1ea982261861d64f6d6d620af83d82b02d3 (diff) | |
download | attr-5b210085cf66ef70ac8e1ca765e0f2e24fc38406.tar.gz |
walk_tree_rec: Add parentheses to clarify code
Make the conditional easier to read.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r-- | libmisc/walk_tree.c | 4 |
1 files 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; /* |