summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-03-03 09:14:26 +0000
committerdes <des@FreeBSD.org>2003-03-03 09:14:26 +0000
commit021faa11ac3e8868e33ee981995319d77cba1b58 (patch)
tree328039d4f363f2179be4fe277b395b7f3e9d2d3f /sys/alpha
parent0968a2b9642c2cbd0a4a82a8fcd1e16cd8f356de (diff)
downloadFreeBSD-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/alpha')
-rw-r--r--sys/alpha/linux/linux_machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/alpha/linux/linux_machdep.c b/sys/alpha/linux/linux_machdep.c
index b2bf228..66d21a4 100644
--- a/sys/alpha/linux/linux_machdep.c
+++ b/sys/alpha/linux/linux_machdep.c
@@ -387,7 +387,7 @@ linux_setrlimit(td, uap)
return EINVAL;
if ((error =
- copyin((caddr_t)uap->rlim, (caddr_t)&rlim, sizeof (struct rlimit))))
+ copyin(uap->rlim, &rlim, sizeof (struct rlimit))))
return (error);
return dosetrlimit(td, which, &rlim);
}
@@ -412,6 +412,6 @@ linux_getrlimit(td, uap)
if (which == -1)
return EINVAL;
- return (copyout((caddr_t)&td->td_proc->p_rlimit[which],
- (caddr_t)uap->rlim, sizeof (struct rlimit)));
+ return (copyout(&td->td_proc->p_rlimit[which],
+ uap->rlim, sizeof (struct rlimit)));
}
OpenPOWER on IntegriCloud