diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-23 15:27:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-23 15:27:33 +0200 |
commit | dd924b730a7cd0bc1d5997f87e12a1df847f5961 (patch) | |
tree | 89431b78fcc151b2a6f01fe1ea11349903f79a55 /Userland | |
parent | 2fe6b3725aef79effc9858cc73ab21c571dc5046 (diff) | |
download | serenity-dd924b730a7cd0bc1d5997f87e12a1df847f5961.zip |
Kernel+LibC: Fix various build issues introduced by ssize_t
Now that ssize_t is derived from size_t, we have to
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/ls.cpp | 2 | ||||
-rw-r--r-- | Userland/stat.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/ls.cpp b/Userland/ls.cpp index 665715ca49..c1fb436b79 100644 --- a/Userland/ls.cpp +++ b/Userland/ls.cpp @@ -303,7 +303,7 @@ bool print_filesystem_object(const String& path, const String& name, const struc ASSERT(st.st_size > 0); printf(" %10s ", human_readable_size((size_t)st.st_size).characters()); } else { - printf(" %10u ", st.st_size); + printf(" %10zd ", st.st_size); } } diff --git a/Userland/stat.cpp b/Userland/stat.cpp index d9000c23ea..05501ced25 100644 --- a/Userland/stat.cpp +++ b/Userland/stat.cpp @@ -48,7 +48,7 @@ static int stat(const char* file, bool should_follow_links) if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) printf(" Device: %u,%u\n", major(st.st_rdev), minor(st.st_rdev)); else - printf(" Size: %u\n", st.st_size); + printf(" Size: %zd\n", st.st_size); printf(" Links: %u\n", st.st_nlink); printf(" Blocks: %u\n", st.st_blocks); printf(" UID: %u", st.st_uid); |