diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-09-18 17:36:56 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-09-18 17:36:56 -0400 |
commit | cac079d033259e72f0d11e81856c0266eada3b7f (patch) | |
tree | eda002cc6970a7a82832e77e63b65b91f09e20ce /bftw.h | |
parent | ccf75c74bdac06eec97a2a6a5228c2e706c121bd (diff) | |
download | bfs-cac079d033259e72f0d11e81856c0266eada3b7f.tar.xz |
stat: Rename bfs_stat_flag to _flags
Flags enums should be plural.
Diffstat (limited to 'bftw.h')
-rw-r--r-- | bftw.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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. |