summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-07-30 19:44:46 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-07-30 19:44:46 +0000
commit110b4521d0bc3c98ae53306a541fd51f03d0147a (patch)
tree4e780780f0f14542dde479188602e8b189710be7 /usr.bin
parentce02aeb9eb7500fe5e8bd40540b6ad3d5875fb2d (diff)
downloadFreeBSD-src-110b4521d0bc3c98ae53306a541fd51f03d0147a.zip
FreeBSD-src-110b4521d0bc3c98ae53306a541fd51f03d0147a.tar.gz
Use correct number of arguments to semctl() for IPC_RMID.
PR: 118292 Submitted by: araujo Differential Revision: D2669
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ipcrm/ipcrm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ipcrm/ipcrm.c b/usr.bin/ipcrm/ipcrm.c
index de97696..98c4555 100644
--- a/usr.bin/ipcrm/ipcrm.c
+++ b/usr.bin/ipcrm/ipcrm.c
@@ -169,7 +169,7 @@ semrm(key_t key, int id)
if ((kxsema[num].u.sem_perm.mode & SEM_ALLOC) != 0) {
id = IXSEQ_TO_IPCID(num,
kxsema[num].u.sem_perm);
- if (semctl(id, IPC_RMID, NULL) < 0) {
+ if (semctl(id, 0, IPC_RMID, NULL) < 0) {
if (rmverbose > 1)
warn("semid(%d): ", id);
errflg++;
OpenPOWER on IntegriCloud