diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-05-01 21:49:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-05-01 21:49:41 +0000 |
commit | 1031ba86aef2258bea2e17491628b140ae862721 (patch) | |
tree | 0f5b03f367b25cbffbb47695d23d884094cc1a68 /usr.bin/ipcs | |
parent | 029f140a448753490b7b7ff2d5e0e001f2f1f4ce (diff) |
do not use semconfig()
Diffstat (limited to 'usr.bin/ipcs')
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 61f55dbba70..c88b5593b6e 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipcs.c,v 1.9 1999/08/16 16:58:22 millert Exp $ */ +/* $OpenBSD: ipcs.c,v 1.10 2000/05/01 21:49:40 deraadt Exp $ */ /* $NetBSD: ipcs.c,v 1.10.6.1 1996/06/07 01:53:47 thorpej Exp $ */ /* @@ -53,7 +53,6 @@ #include <string.h> #include <unistd.h> -int semconfig __P((int, ...)); void usage __P((void)); extern char *__progname; /* from crt0.o */ @@ -446,11 +445,6 @@ main(argc, argv) seminfo.semaem); } if (display & SEMINFO) { - if (semconfig(SEM_CONFIG_FREEZE) != 0) { - perror("semconfig"); - fprintf(stderr, - "Can't lock semaphore facility - winging it...\n"); - } if (kvm_read(kd, symbols[X_SEMA].n_value, &sema, sizeof(sema)) != sizeof(sema)) errx(1, "kvm_read (%s): %s", @@ -508,8 +502,6 @@ main(argc, argv) } } - (void) semconfig(SEM_CONFIG_THAW); - printf("\n"); } } else |