summaryrefslogtreecommitdiffstats
path: root/sbin/mount_nullfs/mount_nullfs.c
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-08-03 17:06:51 +0000
committermux <mux@FreeBSD.org>2002-08-03 17:06:51 +0000
commit557df4aa08808f89632ebe4414f773595fae2f3a (patch)
tree50c9779f89305818adb2504e6ee98e0bd634991c /sbin/mount_nullfs/mount_nullfs.c
parentf02e2b7cdaf508ef58effa28651737b4b7e4f2e7 (diff)
downloadFreeBSD-src-557df4aa08808f89632ebe4414f773595fae2f3a.zip
FreeBSD-src-557df4aa08808f89632ebe4414f773595fae2f3a.tar.gz
Small diffs that p4 didn't catch when I extracted
the diffs from my branch.
Diffstat (limited to 'sbin/mount_nullfs/mount_nullfs.c')
-rw-r--r--sbin/mount_nullfs/mount_nullfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/mount_nullfs/mount_nullfs.c b/sbin/mount_nullfs/mount_nullfs.c
index 2b0f8e7..e46aa0c 100644
--- a/sbin/mount_nullfs/mount_nullfs.c
+++ b/sbin/mount_nullfs/mount_nullfs.c
@@ -77,7 +77,6 @@ main(argc, argv)
int ch, mntflags;
char source[MAXPATHLEN];
char target[MAXPATHLEN];
- int error;
mntflags = 0;
while ((ch = getopt(argc, argv, "o:")) != -1)
@@ -106,7 +105,7 @@ main(argc, argv)
iov[0].iov_base = "fstype";
iov[0].iov_len = sizeof("fstype");
iov[1].iov_base = "nullfs";
- iov[1].iov_len = strlen("nullfs") + 1;
+ iov[1].iov_len = strlen(iov[1].iov_base) + 1;
iov[2].iov_base = "fspath";
iov[2].iov_len = sizeof("fspath");
iov[3].iov_base = source;
OpenPOWER on IntegriCloud