diff options
author | mux <mux@FreeBSD.org> | 2002-08-03 17:06:51 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2002-08-03 17:06:51 +0000 |
commit | 557df4aa08808f89632ebe4414f773595fae2f3a (patch) | |
tree | 50c9779f89305818adb2504e6ee98e0bd634991c /sbin/mount_nullfs | |
parent | f02e2b7cdaf508ef58effa28651737b4b7e4f2e7 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sbin/mount_nullfs/mount_nullfs.c | 3 |
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; |