summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-12-14 01:56:26 +0000
committeralfred <alfred@FreeBSD.org>2002-12-14 01:56:26 +0000
commitd070c0a52d25d76fe9298c4217dc07e9439decca (patch)
treef2f1c63d7a3acfeb3493534ac55908632c5769ee /sys/kern/vfs_mount.c
parent069ffa44b51ac78013fd8505fb1faf6c57b4bb12 (diff)
downloadFreeBSD-src-d070c0a52d25d76fe9298c4217dc07e9439decca.zip
FreeBSD-src-d070c0a52d25d76fe9298c4217dc07e9439decca.tar.gz
SCARGS removal take II.
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 58e8434..a98e1a4 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -323,7 +323,7 @@ nmount(td, uap)
int error;
u_int iovlen, iovcnt;
- iovcnt = SCARG(uap, iovcnt);
+ iovcnt = uap->iovcnt;
iovlen = iovcnt * sizeof (struct iovec);
/*
* Check that we have an even number of iovec's
@@ -352,7 +352,7 @@ nmount(td, uap)
}
iov++;
}
- error = vfs_nmount(td, SCARG(uap, flags), &auio);
+ error = vfs_nmount(td, uap->flags, &auio);
finish:
if (needfree != NULL)
free(needfree, M_TEMP);
@@ -811,12 +811,12 @@ mount(td, uap)
* vfs_mount() actually takes a kernel string for `type' and
* `path' now, so extract them.
*/
- error = copyinstr(SCARG(uap, type), fstype, MFSNAMELEN, NULL);
+ error = copyinstr(uap->type, fstype, MFSNAMELEN, NULL);
if (error == 0)
- error = copyinstr(SCARG(uap, path), fspath, MNAMELEN, NULL);
+ error = copyinstr(uap->path, fspath, MNAMELEN, NULL);
if (error == 0)
- error = vfs_mount(td, fstype, fspath, SCARG(uap, flags),
- SCARG(uap, data));
+ error = vfs_mount(td, fstype, fspath, uap->flags,
+ uap->data);
free(fstype, M_TEMP);
free(fspath, M_TEMP);
return (error);
@@ -1199,7 +1199,7 @@ unmount(td, uap)
struct nameidata nd;
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE,
- SCARG(uap, path), td);
+ uap->path, td);
if ((error = namei(&nd)) != 0)
return (error);
vp = nd.ni_vp;
@@ -1234,7 +1234,7 @@ unmount(td, uap)
return (EINVAL);
}
vput(vp);
- return (dounmount(mp, SCARG(uap, flags), td));
+ return (dounmount(mp, uap->flags, td));
}
/*
OpenPOWER on IntegriCloud