summaryrefslogtreecommitdiffstats
path: root/mtab.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-09-27 12:55:55 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-09-27 13:23:49 -0400
commit62bbbe1a4165f63b31c68b1595ecb0e67d7af3dc (patch)
treec770ff13f37023cae132108b29077a904e6d4dfb /mtab.c
parent3c83bf4e1920be909f65945e56dc8b779c472a59 (diff)
downloadbfs-62bbbe1a4165f63b31c68b1595ecb0e67d7af3dc.tar.xz
Rename struct cmdline to bfs_ctx
The API remains similar, with some added accessor functions for lazy initialization of the pwcache and mtab.
Diffstat (limited to 'mtab.c')
-rw-r--r--mtab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mtab.c b/mtab.c
index 70152cd..50b01be 100644
--- a/mtab.c
+++ b/mtab.c
@@ -1,6 +1,6 @@
/****************************************************************************
* bfs *
- * Copyright (C) 2017-2019 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2017-2020 Tavian Barnes <tavianator@tavianator.com> *
* *
* Permission to use, copy, modify, and/or distribute this software for any *
* purpose with or without fee is hereby granted. *
@@ -102,7 +102,7 @@ fail:
return -1;
}
-struct bfs_mtab *parse_bfs_mtab() {
+struct bfs_mtab *bfs_parse_mtab() {
struct bfs_mtab *mtab = malloc(sizeof(*mtab));
if (!mtab) {
return NULL;
@@ -189,7 +189,7 @@ struct bfs_mtab *parse_bfs_mtab() {
return mtab;
fail:
- free_bfs_mtab(mtab);
+ bfs_free_mtab(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 free_bfs_mtab(struct bfs_mtab *mtab) {
+void bfs_free_mtab(struct bfs_mtab *mtab) {
if (mtab) {
trie_destroy(&mtab->types);
trie_destroy(&mtab->names);