diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-08-05 07:39:39 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-08-05 07:39:39 +0000 |
commit | d6f323c63a771e6a7d5f5b697f1d516ef8a9d8d5 (patch) | |
tree | fdc64ff3292b40a1384e379eccca813cf0d49958 /sbin | |
parent | 379fd9ce57d7a5c44dc16ce8c3c8af02979e7021 (diff) | |
download | FreeBSD-src-d6f323c63a771e6a7d5f5b697f1d516ef8a9d8d5.zip FreeBSD-src-d6f323c63a771e6a7d5f5b697f1d516ef8a9d8d5.tar.gz |
Garbage collect useless variables.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ccdconfig/ccdconfig.c | 2 | ||||
-rw-r--r-- | sbin/mount_ext2fs/mount_ext2fs.c | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/sbin/ccdconfig/ccdconfig.c b/sbin/ccdconfig/ccdconfig.c index 5159bfa..0c584ff 100644 --- a/sbin/ccdconfig/ccdconfig.c +++ b/sbin/ccdconfig/ccdconfig.c @@ -397,7 +397,6 @@ flags_to_val(char *flags) { char *cp, *tok; int i, tmp, val; - size_t flagslen; errno = 0; /* to check for ERANGE */ val = (int)strtol(flags, &cp, 0); @@ -407,7 +406,6 @@ flags_to_val(char *flags) return (val); } - flagslen = strlen(flags); /* Check for values represented by strings. */ if ((cp = strdup(flags)) == NULL) err(1, "no memory to parse flags"); diff --git a/sbin/mount_ext2fs/mount_ext2fs.c b/sbin/mount_ext2fs/mount_ext2fs.c index 4e72454..e396823 100644 --- a/sbin/mount_ext2fs/mount_ext2fs.c +++ b/sbin/mount_ext2fs/mount_ext2fs.c @@ -72,9 +72,8 @@ main(argc, argv) { struct iovec iov[6]; int ch, mntflags; - char *fs_name, *options, *fspec, mntpath[MAXPATHLEN]; + char *fs_name, *fspec, mntpath[MAXPATHLEN]; - options = NULL; mntflags = 0; while ((ch = getopt(argc, argv, "o:")) != -1) switch (ch) { |