From 45b9b26cae5c5d6633ea42107428b4e6c5c3cee0 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 1 Nov 2019 20:45:49 -0700 Subject: [PATCH] libutil/recurse: Remove some unnecessary parentheses --- libutil/recurse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libutil/recurse.c b/libutil/recurse.c index 169e031..d2dc3ed 100644 --- a/libutil/recurse.c +++ b/libutil/recurse.c @@ -40,7 +40,7 @@ recurse(const char *path, void *data, struct recursor *r) return; } if (!S_ISDIR(st.st_mode)) { - (r->fn)(path, &st, data, r); + r->fn(path, &st, data, r); return; } @@ -55,7 +55,7 @@ recurse(const char *path, void *data, struct recursor *r) return; if (!r->depth && (r->flags & DIRFIRST)) - (r->fn)(path, &st, data, r); + r->fn(path, &st, data, r); if (!r->maxdepth || r->depth + 1 < r->maxdepth) { if (!(dp = opendir(path))) { @@ -85,7 +85,7 @@ recurse(const char *path, void *data, struct recursor *r) continue; } else { r->depth++; - (r->fn)(subpath, &dst, data, r); + r->fn(subpath, &dst, data, r); r->depth--; } } @@ -94,7 +94,7 @@ recurse(const char *path, void *data, struct recursor *r) if (!r->depth) { if (!(r->flags & DIRFIRST)) - (r->fn)(path, &st, data, r); + r->fn(path, &st, data, r); for (; r->hist; ) { h = r->hist;