summaryrefslogtreecommitdiff
path: root/src/kernel/vfs
diff options
context:
space:
mode:
authordzwdz2021-08-22 12:17:43 +0200
committerdzwdz2021-08-22 12:17:43 +0200
commit374e6d244f184056d64fd02729a7badf02991e29 (patch)
tree129dcc05757d3354bac0b217ca557eee8ff8c1b4 /src/kernel/vfs
parent0128c5dc7ff2da36114b8f55187234d9b55db353 (diff)
fix almost all compiler warnings
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r--src/kernel/vfs/path.c4
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;