From 374e6d244f184056d64fd02729a7badf02991e29 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 12:17:43 +0200 Subject: fix almost all compiler warnings --- src/kernel/vfs/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs') diff --git a/src/kernel/vfs/path.c b/src/kernel/vfs/path.c index dad4373..00af95c 100644 --- a/src/kernel/vfs/path.c +++ b/src/kernel/vfs/path.c @@ -10,12 +10,12 @@ int path_simplify(const char *in, char *out, size_t len) { int out_pos = 0; bool directory = 0; - for (int i = 0; i < len; i += seg_len + 1) { + for (size_t i = 0; i < len; i += seg_len + 1) { assert(in[i] == '/'); seg_len = 0; directory = false; - for (int j = i + 1; j < len; j++) { + for (size_t j = i + 1; j < len; j++) { if (in[j] == '/') { directory = true; break; -- cgit v1.2.3