summaryrefslogtreecommitdiffstats
path: root/sbin/mount_cd9660
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-03-05 22:41:35 +0000
committerjkim <jkim@FreeBSD.org>2013-03-05 22:41:35 +0000
commit475f470cf1bcd7615e6405a71ccdd43f22a0dd54 (patch)
tree2bf559632576aeda40b2632bd7a6fb5f6d18587b /sbin/mount_cd9660
parent161f82b0bdb9e0bc8b3a3037ded59c981f4a9cf2 (diff)
downloadFreeBSD-src-475f470cf1bcd7615e6405a71ccdd43f22a0dd54.zip
FreeBSD-src-475f470cf1bcd7615e6405a71ccdd43f22a0dd54.tar.gz
GC unused variables. Prefer NULL over 0 for pointers.
Diffstat (limited to 'sbin/mount_cd9660')
-rw-r--r--sbin/mount_cd9660/mount_cd9660.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c
index 2215966..7ea6064 100644
--- a/sbin/mount_cd9660/mount_cd9660.c
+++ b/sbin/mount_cd9660/mount_cd9660.c
@@ -83,7 +83,7 @@ main(int argc, char **argv)
{
struct iovec *iov;
int iovlen;
- int ch, mntflags, opts;
+ int ch, mntflags;
char *dev, *dir, *p, *val, mntpath[MAXPATHLEN];
int verbose;
int ssector; /* starting sector, 0 for 1st session */
@@ -91,7 +91,7 @@ main(int argc, char **argv)
iov = NULL;
iovlen = 0;
- mntflags = opts = verbose = 0;
+ mntflags = verbose = 0;
ssector = -1;
while ((ch = getopt(argc, argv, "begjo:rs:vC:")) != -1)
@@ -109,7 +109,7 @@ main(int argc, char **argv)
build_iovec(&iov, &iovlen, "nojoliet", NULL, (size_t)-1);
break;
case 'o':
- getmntopts(optarg, mopts, &mntflags, &opts);
+ getmntopts(optarg, mopts, &mntflags, NULL);
p = strchr(optarg, '=');
val = NULL;
if (p != NULL) {
OpenPOWER on IntegriCloud