summaryrefslogtreecommitdiffstats
path: root/bftw.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-09-02 11:34:46 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-09-02 11:34:46 -0400
commit2199c8b55dcd34334ef71f12707e17704f1b3d10 (patch)
treeda3c847cde3e4e0ab458539515a462b3ca020bad /bftw.h
parent75377a9db6f9c4e00b9d39828d955ec4443f2ce2 (diff)
downloadbfs-2199c8b55dcd34334ef71f12707e17704f1b3d10.tar.xz
Print the root file/directory too.
Diffstat (limited to 'bftw.h')
-rw-r--r--bftw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bftw.h b/bftw.h
index 0946054..a7c14d9 100644
--- a/bftw.h
+++ b/bftw.h
@@ -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