summaryrefslogtreecommitdiffstats
path: root/printf.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-12-17 17:10:18 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-12-17 17:10:18 -0500
commite95ec269efdfbd97b5d0ee85dda38e7bae498181 (patch)
tree0dda13650a3438feece9bfde6e9e75ed2c2fb269 /printf.c
parentf5ba88ebfed936cfdee3a2ab3d6f690d291e9627 (diff)
downloadbfs-e95ec269efdfbd97b5d0ee85dda38e7bae498181.tar.xz
bftw: Move bftw_typeflag conversion out of util
Turns out incomplete enum types are a GNU C extension.
Diffstat (limited to 'printf.c')
-rw-r--r--printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/printf.c b/printf.c
index 8643f68..1da0de7 100644
--- a/printf.c
+++ b/printf.c
@@ -405,7 +405,7 @@ static int bfs_printf_Y(FILE *file, const struct bfs_printf_directive *directive
struct bfs_stat sb;
if (bfs_stat(ftwbuf->at_fd, ftwbuf->at_path, 0, 0, &sb) == 0) {
- type = bfs_printf_type(mode_to_typeflag(sb.mode));
+ type = bfs_printf_type(bftw_mode_typeflag(sb.mode));
} else {
switch (errno) {
case ELOOP: