fixed qbdi mode to work out of the box

This commit is contained in:
w1redch4d
2025-04-10 19:21:14 +05:30
parent 5a527046a5
commit 3c8016e071
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ int shmctl(int __shmid, int __cmd, struct shmid_ds *__buf) {
int ret = 0;
if (__cmd == IPC_RMID) {
int length = ioctl(__shmid, ASHMEM_GET_SIZE, NULL);
unsigned int length = ioctl(__shmid, ASHMEM_GET_SIZE, NULL);
struct ashmem_pin pin = {0, length};
ret = ioctl(__shmid, ASHMEM_UNPIN, &pin);
close(__shmid);