summaryrefslogtreecommitdiffstats
path: root/stat.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 /stat.h
parentccf75c74bdac06eec97a2a6a5228c2e706c121bd (diff)
downloadbfs-cac079d033259e72f0d11e81856c0266eada3b7f.tar.xz
stat: Rename bfs_stat_flag to _flags
Flags enums should be plural.
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stat.h b/stat.h
index 369ac4a..a32967b 100644
--- a/stat.h
+++ b/stat.h
@@ -62,7 +62,7 @@ const char *bfs_stat_field_name(enum bfs_stat_field field);
/**
* bfs_stat() flags.
*/
-enum bfs_stat_flag {
+enum bfs_stat_flags {
/** Follow symlinks (the default). */
BFS_STAT_FOLLOW = 0,
/** Never follow symlinks. */
@@ -132,7 +132,7 @@ struct bfs_stat {
* @return
* 0 on success, -1 on error.
*/
-int bfs_stat(int at_fd, const char *at_path, enum bfs_stat_flag flags, struct bfs_stat *buf);
+int bfs_stat(int at_fd, const char *at_path, enum bfs_stat_flags flags, struct bfs_stat *buf);
/**
* Get a particular time field from a bfs_stat() buffer.