From 021faa11ac3e8868e33ee981995319d77cba1b58 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 3 Mar 2003 09:14:26 +0000 Subject: More caddr_t removal, in conjunction with copy{in,out}(9) this time. Also clean up some egregious casts and incorrect use of sizeof. --- sys/compat/linux/linux_ipc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/compat/linux/linux_ipc.c') diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c index 6dd21eb..1a6d3d7 100644 --- a/sys/compat/linux/linux_ipc.c +++ b/sys/compat/linux/linux_ipc.c @@ -545,8 +545,8 @@ linux_semctl(struct thread *td, struct linux_semctl_args *args) linux_seminfo.semusz = used_semids; linux_seminfo.semaem = used_sems; */ - error = copyout((caddr_t)&linux_seminfo, (caddr_t)args->arg.buf, - sizeof(linux_seminfo) ); + error = copyout(&linux_seminfo, args->arg.buf, + sizeof(linux_seminfo)); if (error) return error; td->td_retval[0] = seminfo.semmni; @@ -665,7 +665,7 @@ linux_shmat(struct thread *td, struct linux_shmat_args *args) if ((error = shmat(td, &bsd_args))) return error; #ifdef __i386__ - if ((error = copyout(td->td_retval, (caddr_t)args->raddr, sizeof(l_ulong)))) + if ((error = copyout(td->td_retval, args->raddr, sizeof(l_ulong)))) return error; td->td_retval[0] = 0; #endif -- cgit v1.1