Date: Thu, 25 Jun 2009 13:36:58 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r194959 - head/sys/kern Message-ID: <200906251336.n5PDawU8052801@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Thu Jun 25 13:36:57 2009 New Revision: 194959 URL: http://svn.freebsd.org/changeset/base/194959 Log: Tweak the oshmctl() compile fix: convert the K&R definition to ANSI. Modified: head/sys/kern/sysv_shm.c Modified: head/sys/kern/sysv_shm.c ============================================================================== --- head/sys/kern/sysv_shm.c Thu Jun 25 13:15:20 2009 (r194958) +++ head/sys/kern/sysv_shm.c Thu Jun 25 13:36:57 2009 (r194959) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906251336.n5PDawU8052801>