diff options
author | des <des@FreeBSD.org> | 2003-03-03 09:14:26 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-03-03 09:14:26 +0000 |
commit | 021faa11ac3e8868e33ee981995319d77cba1b58 (patch) | |
tree | 328039d4f363f2179be4fe277b395b7f3e9d2d3f /sys/compat/linux/linux_ipc.c | |
parent | 0968a2b9642c2cbd0a4a82a8fcd1e16cd8f356de (diff) | |
download | FreeBSD-src-021faa11ac3e8868e33ee981995319d77cba1b58.zip FreeBSD-src-021faa11ac3e8868e33ee981995319d77cba1b58.tar.gz |
More caddr_t removal, in conjunction with copy{in,out}(9) this time.
Also clean up some egregious casts and incorrect use of sizeof.
Diffstat (limited to 'sys/compat/linux/linux_ipc.c')
-rw-r--r-- | sys/compat/linux/linux_ipc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |