summaryrefslogtreecommitdiffstats
path: root/bftw.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-09-16 12:44:56 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-09-26 12:31:19 -0400
commit4bedd5a6f7b12e0923dd6fa180dcaad7e1f75fc2 (patch)
tree32fece0561ab29bc7d1aaa2d67d4a4a5dd13af64 /bftw.h
parent309c9a29e32edc07cb06e329669be7e30f8d9ed5 (diff)
downloadbfs-4bedd5a6f7b12e0923dd6fa180dcaad7e1f75fc2.tar.xz
Don't call stat() until absolutely necessary.
This way we only call stat() if we're actually pretty-printing the path, potentially saving lots of calls on paths that don't get printed.
Diffstat (limited to 'bftw.h')
-rw-r--r--bftw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bftw.h b/bftw.h
index 14055ac..f3be182 100644
--- a/bftw.h
+++ b/bftw.h
@@ -86,7 +86,7 @@ typedef enum {
* @return
* An action value.
*/
-typedef bftw_action bftw_fn(const struct BFTW *ftwbuf, void *ptr);
+typedef bftw_action bftw_fn(struct BFTW *ftwbuf, void *ptr);
typedef enum {
/** stat() each encountered file. */