diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-25 20:29:02 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-25 22:41:17 +0200 |
commit | 971ab3b919a797248dd031c5f750b59eb6ce4578 (patch) | |
tree | e3807d257b9f145e6dd385136a121ef1be52df59 /Userland/Utilities/blockdev.cpp | |
parent | d1ed554dc8d907d05b27f8c5f0bae03893728e3d (diff) | |
download | serenity-971ab3b919a797248dd031c5f750b59eb6ce4578.zip |
Kernel: Use u64 instead of size_t in the STORAGE_DEVICE_GET_SIZE ioctl
This ensures the device size doesn't get truncated on i686.
Diffstat (limited to 'Userland/Utilities/blockdev.cpp')
-rw-r--r-- | Userland/Utilities/blockdev.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Utilities/blockdev.cpp b/Userland/Utilities/blockdev.cpp index f911347ac4..14e87250ed 100644 --- a/Userland/Utilities/blockdev.cpp +++ b/Userland/Utilities/blockdev.cpp @@ -10,11 +10,10 @@ #include <fcntl.h> #include <stdio.h> #include <sys/ioctl.h> -#include <unistd.h> static void fetch_ioctl(int fd, int request) { - size_t value; + u64 value; if (ioctl(fd, request, &value) < 0) { perror("ioctl"); exit(1); |