diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2015-09-02 11:34:46 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2015-09-02 11:34:46 -0400 |
commit | 2199c8b55dcd34334ef71f12707e17704f1b3d10 (patch) | |
tree | da3c847cde3e4e0ab458539515a462b3ca020bad /bftw.h | |
parent | 75377a9db6f9c4e00b9d39828d955ec4443f2ce2 (diff) | |
download | bfs-2199c8b55dcd34334ef71f12707e17704f1b3d10.tar.xz |
Print the root file/directory too.
Diffstat (limited to 'bftw.h')
-rw-r--r-- | bftw.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,7 @@ typedef int bftw_fn(const char *fpath, const struct BFTW *ftwbuf, void *ptr); * and invokes a callback for each path it encounters. However, bftw() operates * breadth-first. * - * @param dirpath + * @param path * The starting path. * @param fn * The callback to invoke. @@ -64,7 +64,7 @@ typedef int bftw_fn(const char *fpath, const struct BFTW *ftwbuf, void *ptr); * @return * 0 on success, or -1 on failure. */ -int bftw(const char *dirpath, bftw_fn *fn, int nopenfd, int flags, void *ptr); +int bftw(const char *path, bftw_fn *fn, int nopenfd, int flags, void *ptr); /** typeflag: Block device. */ #define BFTW_BLK 0 |