1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

Kernel+LibC: Use uintptr_t as the main type in the syscall interface

This commit is contained in:
Andreas Kling 2020-10-12 14:49:31 +02:00
parent 583bfa04e2
commit 65cdac1a5b
5 changed files with 25 additions and 19 deletions

View file

@ -93,7 +93,7 @@ int perf_event(int type, uintptr_t arg1, FlatPtr arg2)
void* shbuf_get(int shbuf_id, size_t* size)
{
int rc = syscall(SC_shbuf_get, shbuf_id, size);
ssize_t rc = syscall(SC_shbuf_get, shbuf_id, size);
if (rc < 0 && -rc < EMAXERRNO) {
errno = -rc;
return (void*)-1;