summaryrefslogtreecommitdiffstats
path: root/mtab.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-10-06 13:15:43 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-10-06 13:15:43 -0400
commitd2d9a751b172edb2b3aee613cf4bbe06ff5a07c8 (patch)
tree1717b0c2ef3afa8ce8230fbd5d1a40c174cda598 /mtab.c
parent19528c3cab1020196bd6a033dd47871e087f8886 (diff)
downloadbfs-d2d9a751b172edb2b3aee613cf4bbe06ff5a07c8.tar.xz
mtab: Adjust some naming conventions
Diffstat (limited to 'mtab.c')
-rw-r--r--mtab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mtab.c b/mtab.c
index 50b01be..4f1b9be 100644
--- a/mtab.c
+++ b/mtab.c
@@ -102,7 +102,7 @@ fail:
return -1;
}
-struct bfs_mtab *bfs_parse_mtab() {
+struct bfs_mtab *bfs_mtab_parse() {
struct bfs_mtab *mtab = malloc(sizeof(*mtab));
if (!mtab) {
return NULL;
@@ -189,7 +189,7 @@ struct bfs_mtab *bfs_parse_mtab() {
return mtab;
fail:
- bfs_free_mtab(mtab);
+ bfs_mtab_free(mtab);
errno = error;
return NULL;
}
@@ -230,7 +230,7 @@ bool bfs_might_be_mount(const struct bfs_mtab *mtab, const char *path) {
return trie_find_str(&mtab->names, name);
}
-void bfs_free_mtab(struct bfs_mtab *mtab) {
+void bfs_mtab_free(struct bfs_mtab *mtab) {
if (mtab) {
trie_destroy(&mtab->types);
trie_destroy(&mtab->names);