From 6d1624438625f092e4718aed8e63dea63f04ffa2 Mon Sep 17 00:00:00 2001 From: thorpej Date: Wed, 25 Aug 1999 05:12:15 +0000 Subject: [PATCH] Update for new semctl() footprint. --- usr.bin/ipcrm/ipcrm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/usr.bin/ipcrm/ipcrm.c b/usr.bin/ipcrm/ipcrm.c index 5e6adbee271a..d3057218feb0 100644 --- a/usr.bin/ipcrm/ipcrm.c +++ b/usr.bin/ipcrm/ipcrm.c @@ -1,4 +1,4 @@ -/* $NetBSD: ipcrm.c,v 1.7 1998/12/19 17:04:11 christos Exp $ */ +/* $NetBSD: ipcrm.c,v 1.8 1999/08/25 05:12:15 thorpej Exp $ */ /* * Copyright (c) 1994 Adam Glass @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $NetBSD: ipcrm.c,v 1.7 1998/12/19 17:04:11 christos Exp $ + * $NetBSD: ipcrm.c,v 1.8 1999/08/25 05:12:15 thorpej Exp $ */ #include @@ -93,14 +93,13 @@ int semrm(key, id) key_t key; int id; { - union semun arg; if (key) { id = semget(key, 0, 0); if (id == -1) return -1; } - return semctl(id, 0, IPC_RMID, arg); + return semctl(id, 0, IPC_RMID, NULL); } void not_configured()