diff options
author | alfred <alfred@FreeBSD.org> | 2002-12-13 22:27:25 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-12-13 22:27:25 +0000 |
commit | d19b4e039d47537b44233aae83d03b974d29d771 (patch) | |
tree | b2cd5de03207ffb05958058e0037314b0074a8d9 /sys/kern/kern_mac.c | |
parent | d054c724880804baff98bc5759042a9e91fb8122 (diff) | |
download | FreeBSD-src-d19b4e039d47537b44233aae83d03b974d29d771.zip FreeBSD-src-d19b4e039d47537b44233aae83d03b974d29d771.tar.gz |
Remove SCARGS.
Reviewed by: md5
Diffstat (limited to 'sys/kern/kern_mac.c')
-rw-r--r-- | sys/kern/kern_mac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_mac.c b/sys/kern/kern_mac.c index 257d131..6542a73 100644 --- a/sys/kern/kern_mac.c +++ b/sys/kern/kern_mac.c @@ -3020,7 +3020,7 @@ __mac_get_pid(struct thread *td, struct __mac_get_pid_args *uap) struct ucred *tcred; int error; - error = copyin(SCARG(uap, mac_p), &mac, sizeof(mac)); + error = copyin(uap->mac_p, &mac, sizeof(mac)); if (error) return (error); @@ -3203,7 +3203,7 @@ __mac_get_fd(struct thread *td, struct __mac_get_fd_args *uap) buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); mtx_lock(&Giant); /* VFS */ - error = fget(td, SCARG(uap, fd), &fp); + error = fget(td, uap->fd, &fp); if (error) goto out; @@ -3405,7 +3405,7 @@ __mac_set_fd(struct thread *td, struct __mac_set_fd_args *uap) mtx_lock(&Giant); /* VFS */ - error = fget(td, SCARG(uap, fd), &fp); + error = fget(td, uap->fd, &fp); if (error) goto out; @@ -3583,7 +3583,7 @@ mac_syscall(struct thread *td, struct mac_syscall_args *uap) char target[MAC_MAX_POLICY_NAME]; int error; - error = copyinstr(SCARG(uap, policy), target, sizeof(target), NULL); + error = copyinstr(uap->policy, target, sizeof(target), NULL); if (error) return (error); @@ -3593,7 +3593,7 @@ mac_syscall(struct thread *td, struct mac_syscall_args *uap) if (strcmp(mpc->mpc_name, target) == 0 && mpc->mpc_ops->mpo_syscall != NULL) { error = mpc->mpc_ops->mpo_syscall(td, - SCARG(uap, call), SCARG(uap, arg)); + uap->call, uap->arg); goto out; } } |