From 2199c8b55dcd34334ef71f12707e17704f1b3d10 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 2 Sep 2015 11:34:46 -0400 Subject: Print the root file/directory too. --- bftw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bftw.h') 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 -- cgit v1.2.3