diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 3ea8a574075a..8fd1b4764301 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -56,7 +56,6 @@ struct msqid_ds *msqids; struct shminfo shminfo; struct shmid_ds *shmsegs; -int semconfig __P((int,...)); void usage __P((void)); static struct nlist symbols[] = { @@ -420,11 +419,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"); - } kvm_read(kd, symbols[X_SEMA].n_value, &sema, sizeof(sema)); xsema = malloc(sizeof(struct semid_ds) * seminfo.semmni); kvm_read(kd, (u_long) sema, xsema, sizeof(struct semid_ds) * seminfo.semmni); @@ -471,8 +465,6 @@ main(argc, argv) } } - (void) semconfig(SEM_CONFIG_THAW); - printf("\n"); } } else