aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/bp-semctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/bp-semctl.h')
-rw-r--r--sysdeps/generic/bp-semctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/bp-semctl.h b/sysdeps/generic/bp-semctl.h
index 86a6b27..7ba8f43 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;