summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-08 23:17:23 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-08 23:17:23 +0200
commit72f4a6ee1fcb22a6ad407e9e0d9969de820985fe (patch)
treef28c6060cc0123db0c41c30d21a9d7bed9d3a9e7
parent0f5f10ab571576e840a9568669bd49f5cdf7c0ac (diff)
fs: rename readdir() and closedir() to read() and close() respectively
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--lib/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fs.c b/lib/fs.c
index 9198e87..0d9b463 100644
--- a/lib/fs.c
+++ b/lib/fs.c
@@ -602,9 +602,9 @@ void ut_module_init(const struct ut_ops *ut, struct ut_state *s, struct json_obj
dir_proto = ops->new_object(s, NULL);
if (dir_proto) {
- ops->register_function(s, dir_proto, "readdir", ut_fs_readdir);
+ ops->register_function(s, dir_proto, "read", ut_fs_readdir);
ops->register_function(s, dir_proto, "seek", ut_fs_seekdir);
ops->register_function(s, dir_proto, "tell", ut_fs_telldir);
- ops->register_function(s, dir_proto, "closedir", ut_fs_closedir);
+ ops->register_function(s, dir_proto, "close", ut_fs_closedir);
}
}