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_stats.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_stats.c')
-rw-r--r-- | sys/compat/linux/linux_stats.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index d02186f..dcb15cf 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -269,8 +269,7 @@ linux_statfs(struct thread *td, struct linux_statfs_args *args) linux_statfs.f_fsid.val[0] = bsd_statfs->f_fsid.val[0]; linux_statfs.f_fsid.val[1] = bsd_statfs->f_fsid.val[1]; linux_statfs.f_namelen = MAXNAMLEN; - return copyout((caddr_t)&linux_statfs, (caddr_t)args->buf, - sizeof(linux_statfs)); + return copyout(&linux_statfs, args->buf, sizeof(linux_statfs)); } int @@ -314,8 +313,7 @@ linux_fstatfs(struct thread *td, struct linux_fstatfs_args *args) linux_statfs.f_fsid.val[0] = bsd_statfs->f_fsid.val[0]; linux_statfs.f_fsid.val[1] = bsd_statfs->f_fsid.val[1]; linux_statfs.f_namelen = MAXNAMLEN; - error = copyout((caddr_t)&linux_statfs, (caddr_t)args->buf, - sizeof(linux_statfs)); + error = copyout(&linux_statfs, args->buf, sizeof(linux_statfs)); fdrop(fp, td); return error; } |