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:
parent
583bfa04e2
commit
65cdac1a5b
5 changed files with 25 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue