Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ipcrm Update for new semctl() footprint.
details: https://anonhg.NetBSD.org/src/rev/0b0aed33ddc7
branches: trunk
changeset: 475772:0b0aed33ddc7
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Aug 25 05:12:15 1999 +0000
description:
Update for new semctl() footprint.
diffstat:
usr.bin/ipcrm/ipcrm.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 4ea0154d194e -r 0b0aed33ddc7 usr.bin/ipcrm/ipcrm.c
--- a/usr.bin/ipcrm/ipcrm.c Wed Aug 25 05:11:51 1999 +0000
+++ b/usr.bin/ipcrm/ipcrm.c Wed Aug 25 05:12:15 1999 +0000
@@ -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 <stdio.h>
@@ -93,14 +93,13 @@
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()
Home |
Main Index |
Thread Index |
Old Index