summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bftw.c2
-rw-r--r--mtab.c2
-rw-r--r--mtab.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/bftw.c b/bftw.c
index 370ab12..2347b00 100644
--- a/bftw.c
+++ b/bftw.c
@@ -911,7 +911,7 @@ static bool bftw_need_stat(const struct bftw_state *state) {
// need to stat() to get the correct type. We don't need to
// check for directories because they can only be mounted over
// by other directories.
- if (bfs_maybe_mount(state->mtab, ftwbuf->path)) {
+ if (bfs_might_be_mount(state->mtab, ftwbuf->path)) {
return true;
}
#endif
diff --git a/mtab.c b/mtab.c
index 57ea402..fd2d71e 100644
--- a/mtab.c
+++ b/mtab.c
@@ -219,7 +219,7 @@ const char *bfs_fstype(const struct bfs_mtab *mtab, const struct bfs_stat *statb
}
}
-bool bfs_maybe_mount(const struct bfs_mtab *mtab, const char *path) {
+bool bfs_might_be_mount(const struct bfs_mtab *mtab, const char *path) {
const char *name = xbasename(path);
return trie_find_str(&mtab->names, name);
}
diff --git a/mtab.h b/mtab.h
index a12fbaa..57fe11d 100644
--- a/mtab.h
+++ b/mtab.h
@@ -60,7 +60,7 @@ const char *bfs_fstype(const struct bfs_mtab *mtab, const struct bfs_stat *statb
* @return
* Whether the named file could be a mount point.
*/
-bool bfs_maybe_mount(const struct bfs_mtab *mtab, const char *path);
+bool bfs_might_be_mount(const struct bfs_mtab *mtab, const char *path);
/**
* Free a mount table.