summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-06-25 13:36:57 +0000
committerjhb <jhb@FreeBSD.org>2009-06-25 13:36:57 +0000
commit59a38c2e5e60ebcbdb16921ebe3db82cb31d8faa (patch)
tree3c365ff5d1304d269821b355a67d75051f589062
parentfbabb378d7fee4e047ebb807821854591a523e76 (diff)
downloadFreeBSD-src-59a38c2e5e60ebcbdb16921ebe3db82cb31d8faa.zip
FreeBSD-src-59a38c2e5e60ebcbdb16921ebe3db82cb31d8faa.tar.gz
Tweak the oshmctl() compile fix: convert the K&R definition to ANSI.
-rw-r--r--sys/kern/sysv_shm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c
index 2997145..56a3d4f 100644
--- a/sys/kern/sysv_shm.c
+++ b/sys/kern/sysv_shm.c
@@ -116,10 +116,6 @@ struct shmmap_state {
int shmid;
};
-#if defined(__i386__) && (defined(COMPAT_FREEBSD4) || defined(COMPAT_43))
-struct oshmctl_args;
-static int oshmctl(struct thread *td, struct oshmctl_args *uap);
-#endif
static void shm_deallocate_segment(struct shmid_kernel *);
static int shm_find_segment_by_key(key_t);
static struct shmid_kernel *shm_find_segment_by_shmid(int);
@@ -901,9 +897,7 @@ struct oshmctl_args {
};
static int
-oshmctl(td, uap)
- struct thread *td;
- struct oshmctl_args *uap;
+oshmctl(struct thread *td, struct oshmctl_args *uap)
{
#ifdef COMPAT_43
int error = 0;
OpenPOWER on IntegriCloud