mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
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.
This commit is contained in:
parent
d1ed554dc8
commit
971ab3b919
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue