From e410e54ed503c88bf5228986f906b233388685ea Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 1 Mar 2024 18:44:59 -0500 Subject: kernel: vfs: Return -1 on vfs_hash_path() failure Signed-off-by: Ian Moffett --- sys/include/sys/vfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/include') diff --git a/sys/include/sys/vfs.h b/sys/include/sys/vfs.h index 40b27af..7aafecf 100644 --- a/sys/include/sys/vfs.h +++ b/sys/include/sys/vfs.h @@ -41,7 +41,7 @@ struct fs_info *vfs_byname(const char *name); struct vnode *vfs_path_to_node(const char *path); char *vfs_get_fname_at(const char *path, size_t idx); bool vfs_is_valid_path(const char *path); -size_t vfs_hash_path(const char *path); +ssize_t vfs_hash_path(const char *path); #endif /* defined(_KERNEL) */ #endif /* !_SYS_VFS_H_ */ -- cgit v1.2.3