diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-12-22 13:20:32 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-23 23:08:10 +0100 |
commit | 8e3d1a42e3177096a1e7b84387c9f30627d3124e (patch) | |
tree | 2a4c55b2875a2938b6c37d6baedb30fdbbb9e3dd /Kernel/API | |
parent | d1ef8e63f75b18a744ba65105a0e7e0aac56e6c2 (diff) | |
download | serenity-8e3d1a42e3177096a1e7b84387c9f30627d3124e.zip |
Kernel+UE+LibC: Store address as void* in SC_m{re,}map_params
Most other syscalls pass address arguments as `void*` instead of
`uintptr_t`, so let's do that here too. Besides improving consistency,
this commit makes `strace` correctly pretty-print these arguments in
hex.
Diffstat (limited to 'Kernel/API')
-rw-r--r-- | Kernel/API/Syscall.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 5a6b793eee..6167244b6e 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -239,7 +239,7 @@ struct StringListArgument { }; struct SC_mmap_params { - uintptr_t addr; + void* addr; size_t size; size_t alignment; int32_t prot; @@ -250,7 +250,7 @@ struct SC_mmap_params { }; struct SC_mremap_params { - uintptr_t old_address; + void* old_address; size_t old_size; size_t new_size; int32_t flags; |