mufs: rename mufs_opendirent() to open_dirent()
This commit is contained in:
parent
71fb90a602
commit
52b382b8b0
1 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ char *mufs_abspath(const char *path)
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct mufs_dir *mufs_opendirent(struct mufs *fs, struct mufs_dirent *entry)
|
static struct mufs_dir *open_dirent(struct mufs *fs, struct mufs_dirent *entry)
|
||||||
{
|
{
|
||||||
struct mufs_dir *dir;
|
struct mufs_dir *dir;
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ struct mufs_tree *resolve_path(struct mufs *fs, const char *path)
|
||||||
if (strcmp(s, "/") == 0)
|
if (strcmp(s, "/") == 0)
|
||||||
return &fs->root;
|
return &fs->root;
|
||||||
|
|
||||||
if (!(dir = mufs_opendirent(fs, NULL)))
|
if (!(dir = open_dirent(fs, NULL)))
|
||||||
goto err_free_s;
|
goto err_free_s;
|
||||||
|
|
||||||
for (p = s + 1; *p != '\0'; p = end) {
|
for (p = s + 1; *p != '\0'; p = end) {
|
||||||
|
@ -122,7 +122,7 @@ struct mufs_tree *resolve_path(struct mufs *fs, const char *path)
|
||||||
|
|
||||||
mufs_closedir(dir);
|
mufs_closedir(dir);
|
||||||
|
|
||||||
if (!(dir = mufs_opendirent(fs, &entry)))
|
if (!(dir = open_dirent(fs, &entry)))
|
||||||
goto err_free_s;
|
goto err_free_s;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue