diff options
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/bp-checks.h | 2 | ||||
-rw-r--r-- | sysdeps/generic/bp-semctl.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/generic/bp-checks.h b/sysdeps/generic/bp-checks.h index 0da4657ae2..f7defa417c 100644 --- a/sysdeps/generic/bp-checks.h +++ b/sysdeps/generic/bp-checks.h @@ -92,7 +92,7 @@ extern void *__unbounded __ubp_memchr (const void *__unbounded, int, unsigned); /* Return a bounded pointer with value PTR that satisfies CHECK_N (PTR, N). */ # define BOUNDED_N(PTR, N) \ - ({ __typeof (*(PTR)) *__bounded _p_; \ + ({ __typeof (PTR) __bounded _p_; \ __ptrvalue _p_ = __ptrlow _p_ = __ptrvalue (PTR); \ __ptrhigh _p_ = __ptrvalue _p_ + (N); \ _p_; }) diff --git a/sysdeps/generic/bp-semctl.h b/sysdeps/generic/bp-semctl.h index 86a6b27734..7ba8f43bfd 100644 --- a/sysdeps/generic/bp-semctl.h +++ b/sysdeps/generic/bp-semctl.h @@ -43,12 +43,12 @@ check_semctl (union semun *arg, int semid, int cmd) case SETALL: { struct semid_ds ds; - union semun un = { buf: &ds; }; + union semun un = { buf: &ds }; unsigned int length = ~0; /* It's unfortunate that we need to make a recursive system call to get the size of the semaphore set... */ - if (semctl (semid, semnum, IPC_STAT | ipc64, un) == 0) + if (semctl (semid, 0, IPC_STAT | ipc64, un) == 0) length = ds.sem_nsems; (void) CHECK_N (arg->array, length); break; |