diff options
author | Benji Dial <benji@benjidial.net> | 2024-01-11 23:53:57 -0500 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-01-11 23:53:57 -0500 |
commit | c4ab2f6f440f060b1686991b24379a4998aa55a9 (patch) | |
tree | e1b4cc875554a18ac110847cca9ba55261fca9c9 /kernel/storage.cpp | |
parent | 88816732b53eb536fe0e8db3d9ed15f0d1c29bb4 (diff) | |
download | hilbert-os-c4ab2f6f440f060b1686991b24379a4998aa55a9.tar.gz |
file reading, tarfs directory listing
Diffstat (limited to 'kernel/storage.cpp')
-rw-r--r-- | kernel/storage.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kernel/storage.cpp b/kernel/storage.cpp index 29ae6cf..97d89aa 100644 --- a/kernel/storage.cpp +++ b/kernel/storage.cpp @@ -99,7 +99,7 @@ namespace mercury::kernel::storage { segments.add_end(r.segments.buffer[i]); } - void canonize_path(const char *str, size_t len, canon_path &out) { + void canonize_path(const char *str, unsigned len, canon_path &out) { out.absolute = false; out.parent_count = 0; @@ -121,8 +121,8 @@ namespace mercury::kernel::storage { while (len != 0) { - size_t segment_len = utility::find(str, len, '/'); - size_t to_skip = segment_len == len ? segment_len : segment_len + 1; + unsigned segment_len = utility::find(str, len, '/'); + unsigned to_skip = segment_len == len ? segment_len : segment_len + 1; if (segment_len == 0) ; @@ -169,6 +169,9 @@ namespace mercury::kernel::storage { //TODO while (1) ; + (void)bd; + (void)node; + (void)out; } static io_result resolve_symlinks( |