diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2013-03-05 22:41:35 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2013-03-05 22:41:35 +0000 |
commit | 7039dfb32ffe381387f2cb837d9cbdc3b58823bf (patch) | |
tree | 2bf559632576aeda40b2632bd7a6fb5f6d18587b /sbin/mount_nullfs/mount_nullfs.c | |
parent | e9401a9e0e67a2158b779254e3962fa417a2547c (diff) |
GC unused variables. Prefer NULL over 0 for pointers.
Notes
Notes:
svn path=/head/; revision=247856
Diffstat (limited to 'sbin/mount_nullfs/mount_nullfs.c')
-rw-r--r-- | sbin/mount_nullfs/mount_nullfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/mount_nullfs/mount_nullfs.c b/sbin/mount_nullfs/mount_nullfs.c index aaf66e527ea3..e08599fca549 100644 --- a/sbin/mount_nullfs/mount_nullfs.c +++ b/sbin/mount_nullfs/mount_nullfs.c @@ -68,12 +68,11 @@ main(int argc, char *argv[]) char source[MAXPATHLEN]; char target[MAXPATHLEN]; char errmsg[255]; - int ch, mntflags, iovlen; + int ch, iovlen; char nullfs[] = "nullfs"; iov = NULL; iovlen = 0; - mntflags = 0; errmsg[0] = '\0'; while ((ch = getopt(argc, argv, "o:")) != -1) switch(ch) { @@ -111,7 +110,7 @@ main(int argc, char *argv[]) build_iovec(&iov, &iovlen, "fspath", source, (size_t)-1); build_iovec(&iov, &iovlen, "target", target, (size_t)-1); build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); - if (nmount(iov, iovlen, mntflags) < 0) { + if (nmount(iov, iovlen, 0) < 0) { if (errmsg[0] != 0) err(1, "%s: %s", source, errmsg); else |