Remove caddr_t casts.

Requested by:	bde
MFC after:	10 days
This commit is contained in:
Konstantin Belousov 2010-04-29 09:55:51 +00:00
parent 4f27c5edfe
commit e68d26fd5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207363

View File

@ -1084,11 +1084,9 @@ sysctl_out_proc_copyout(struct kinfo_proc *ki, struct sysctl_req *req)
if (req->flags & SCTL_MASK32) {
freebsd32_kinfo_proc_out(ki, &ki32);
error = SYSCTL_OUT(req, (caddr_t)&ki32,
sizeof(struct kinfo_proc32));
error = SYSCTL_OUT(req, &ki32, sizeof(struct kinfo_proc32));
} else
error = SYSCTL_OUT(req, (caddr_t)ki,
sizeof(struct kinfo_proc));
error = SYSCTL_OUT(req, ki, sizeof(struct kinfo_proc));
return (error);
}
#else
@ -1096,7 +1094,7 @@ static int
sysctl_out_proc_copyout(struct kinfo_proc *ki, struct sysctl_req *req)
{
return (SYSCTL_OUT(req, (caddr_t)ki, sizeof(struct kinfo_proc)));
return (SYSCTL_OUT(req, ki, sizeof(struct kinfo_proc)));
}
#endif