From 0297e9db976aa2c3f17e237c6c5c37f3fde454a9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 8 Aug 2021 23:23:27 +0200 Subject: path_simplify now returns int, has better tests --- src/kernel/vfs/path.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs/path.h') diff --git a/src/kernel/vfs/path.h b/src/kernel/vfs/path.h index 22dc754..3aefccf 100644 --- a/src/kernel/vfs/path.h +++ b/src/kernel/vfs/path.h @@ -6,6 +6,6 @@ * *in and *out can't overlap unless they're equal. Then, the path is modified * in-place. * - * @return Was the path valid? If this is false, *out is undefined + * @return length of the string in *out, always less than len. Negative if the path was invalid. */ -bool path_simplify(const char *in, char *out, size_t len); +int path_simplify(const char *in, char *out, size_t len); -- cgit v1.2.3