summaryrefslogtreecommitdiffstats
path: root/bftw.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-09-18 17:36:56 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-09-18 17:36:56 -0400
commitcac079d033259e72f0d11e81856c0266eada3b7f (patch)
treeeda002cc6970a7a82832e77e63b65b91f09e20ce /bftw.h
parentccf75c74bdac06eec97a2a6a5228c2e706c121bd (diff)
downloadbfs-cac079d033259e72f0d11e81856c0266eada3b7f.tar.xz
stat: Rename bfs_stat_flag to _flags
Flags enums should be plural.
Diffstat (limited to 'bftw.h')
-rw-r--r--bftw.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/bftw.h b/bftw.h
index 2198b52..687a4c5 100644
--- a/bftw.h
+++ b/bftw.h
@@ -110,7 +110,7 @@ struct BFTW {
const char *at_path;
/** Flags for bfs_stat(). */
- enum bfs_stat_flag stat_flags;
+ enum bfs_stat_flags stat_flags;
/** Cached bfs_stat() info for BFS_STAT_NOFOLLOW. */
struct bftw_stat lstat_cache;
/** Cached bfs_stat() info for BFS_STAT_FOLLOW. */
@@ -128,7 +128,7 @@ struct BFTW {
* @return
* A pointer to a bfs_stat() buffer, or NULL if the call failed.
*/
-const struct bfs_stat *bftw_stat(const struct BFTW *ftwbuf, enum bfs_stat_flag flags);
+const struct bfs_stat *bftw_stat(const struct BFTW *ftwbuf, enum bfs_stat_flags flags);
/**
* Get bfs_stat() info for a file encountered during bftw(), if it has already
@@ -141,7 +141,7 @@ const struct bfs_stat *bftw_stat(const struct BFTW *ftwbuf, enum bfs_stat_flag f
* @return
* A pointer to a bfs_stat() buffer, or NULL if no stat info is cached.
*/
-const struct bfs_stat *bftw_cached_stat(const struct BFTW *ftwbuf, enum bfs_stat_flag flags);
+const struct bfs_stat *bftw_cached_stat(const struct BFTW *ftwbuf, enum bfs_stat_flags flags);
/**
* Get the type of a file encountered during bftw(), with flags controlling
@@ -155,7 +155,7 @@ const struct bfs_stat *bftw_cached_stat(const struct BFTW *ftwbuf, enum bfs_stat
* @return
* The type of the file, or BFTW_ERROR if an error occurred.
*/
-enum bftw_type bftw_type(const struct BFTW *ftwbuf, enum bfs_stat_flag flags);
+enum bftw_type bftw_type(const struct BFTW *ftwbuf, enum bfs_stat_flags flags);
/**
* Walk actions returned by the bftw() callback.