summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_acct.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_acct.c')
-rw-r--r--sys/kern/kern_acct.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c
index 9188e30..c2554b6 100644
--- a/sys/kern/kern_acct.c
+++ b/sys/kern/kern_acct.c
@@ -139,8 +139,8 @@ acct(td, uap)
* If accounting is to be started to a file, open that file for
* appending and make sure it's a 'normal'.
*/
- if (SCARG(uap, path) != NULL) {
- NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, SCARG(uap, path),
+ if (uap->path != NULL) {
+ NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, uap->path,
td);
flags = FWRITE | O_APPEND;
error = vn_open(&nd, &flags, 0);
@@ -187,7 +187,7 @@ acct(td, uap)
crfree(acctcred != NOCRED ? acctcred : savacctcred);
acctcred = savacctcred = NOCRED;
}
- if (SCARG(uap, path) == NULL) {
+ if (uap->path == NULL) {
mtx_unlock(&acct_mtx);
goto done2;
}
OpenPOWER on IntegriCloud