commit 45b9b26cae5c5d6633ea42107428b4e6c5c3cee0
Author:     Michael Forney <[email protected]>
AuthorDate: Fri Nov 1 20:45:49 2019 -0700
Commit:     Michael Forney <[email protected]>
CommitDate: Sat Nov 2 14:03:10 2019 -0700

    libutil/recurse: Remove some unnecessary parentheses

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;

Reply via email to