diff options
Diffstat (limited to 'src/kernel/vfs/path.c')
-rw-r--r-- | src/kernel/vfs/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |