diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2015-09-16 12:44:56 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2015-09-26 12:31:19 -0400 |
commit | 4bedd5a6f7b12e0923dd6fa180dcaad7e1f75fc2 (patch) | |
tree | 32fece0561ab29bc7d1aaa2d67d4a4a5dd13af64 /bftw.h | |
parent | 309c9a29e32edc07cb06e329669be7e30f8d9ed5 (diff) | |
download | bfs-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |