sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 45b9b26cae5c5d6633ea42107428b4e6c5c3cee0
parent c5c8c7ff86f08915524bcb4fe767744d0d0a8a83
Author: Michael Forney <mforney@mforney.org>
Date:   Fri,  1 Nov 2019 20:45:49 -0700

libutil/recurse: Remove some unnecessary parentheses

Diffstat:
Mlibutil/recurse.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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;