From 72f4a6ee1fcb22a6ad407e9e0d9969de820985fe Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 8 Sep 2020 23:17:23 +0200 Subject: fs: rename readdir() and closedir() to read() and close() respectively Signed-off-by: Jo-Philipp Wich --- lib/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/fs.c') 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); } } -- cgit v1.2.3