From 340bde81785a84df539728fe78fbb51472c56934 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Tue, 14 Apr 2015 04:52:52 +0000 Subject: [PATCH] ipcs: fix builds that use gcc gcc gets annoyed by duplicate declarations Reported by: sbruno Reviewed by: sbruno --- usr.bin/ipcs/ipc.c | 1 - usr.bin/ipcs/ipc.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/usr.bin/ipcs/ipc.c b/usr.bin/ipcs/ipc.c index f3e04faf6734..306d659d7d06 100644 --- a/usr.bin/ipcs/ipc.c +++ b/usr.bin/ipcs/ipc.c @@ -55,7 +55,6 @@ struct msginfo msginfo; struct msqid_kernel *msqids; struct shminfo shminfo; struct shmid_kernel *shmsegs; -void kget(int idx, void *addr, size_t size); struct nlist symbols[] = { { .n_name = "sema" }, diff --git a/usr.bin/ipcs/ipc.h b/usr.bin/ipcs/ipc.h index e3bbd711629d..0b6188a7217b 100644 --- a/usr.bin/ipcs/ipc.h +++ b/usr.bin/ipcs/ipc.h @@ -64,8 +64,5 @@ extern struct nlist symbols[]; extern kvm_t *kd; extern struct semid_kernel *sema; -extern struct seminfo seminfo; -extern struct msginfo msginfo; extern struct msqid_kernel *msqids; -extern struct shminfo shminfo; extern struct shmid_kernel *shmsegs;