summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-06-24 23:31:07 +0000
committerdd <dd@FreeBSD.org>2001-06-24 23:31:07 +0000
commitce0c9a0b239239ec6ed8cfab82b1b824bad653af (patch)
tree91bfaacc5d6cba5d7dd08ca4f9cf54d287110133 /sbin
parent0be791fe0bc74a945d97d96976c6daaffa913cec (diff)
downloadFreeBSD-src-ce0c9a0b239239ec6ed8cfab82b1b824bad653af.zip
FreeBSD-src-ce0c9a0b239239ec6ed8cfab82b1b824bad653af.tar.gz
Nuke unused variables.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/bsdlabel/bsdlabel.c3
-rw-r--r--sbin/disklabel/disklabel.c3
-rw-r--r--sbin/mount_ifs/mount.c7
-rw-r--r--sbin/mount_ntfs/mount_ntfs.c2
4 files changed, 1 insertions, 14 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c
index 8f7ab5d..cf3638f 100644
--- a/sbin/bsdlabel/bsdlabel.c
+++ b/sbin/bsdlabel/bsdlabel.c
@@ -959,7 +959,6 @@ getasciilabel(f, lp)
{
register char **cpp, *cp;
register struct partition *pp;
- int i;
unsigned int part;
char *tp, *s, line[BUFSIZ];
int v, lineno = 0, errors = 0;
@@ -1392,7 +1391,6 @@ checklabel(lp)
hog_part = i;
}
} else {
- char *type;
off_t size;
size = pp->p_size;
@@ -1452,7 +1450,6 @@ checklabel(lp)
for (i = 0; i < lp->d_npartitions; i++) {
pp = &lp->d_partitions[i];
if (part_set[i] && part_size_type[i] == '%') {
- unsigned long old_size = pp->p_size;
/* careful of overflows! and integer roundoff */
pp->p_size = ((double)pp->p_size/100) * free_space;
total_size += pp->p_size;
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 8f7ab5d..cf3638f 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -959,7 +959,6 @@ getasciilabel(f, lp)
{
register char **cpp, *cp;
register struct partition *pp;
- int i;
unsigned int part;
char *tp, *s, line[BUFSIZ];
int v, lineno = 0, errors = 0;
@@ -1392,7 +1391,6 @@ checklabel(lp)
hog_part = i;
}
} else {
- char *type;
off_t size;
size = pp->p_size;
@@ -1452,7 +1450,6 @@ checklabel(lp)
for (i = 0; i < lp->d_npartitions; i++) {
pp = &lp->d_partitions[i];
if (part_set[i] && part_size_type[i] == '%') {
- unsigned long old_size = pp->p_size;
/* careful of overflows! and integer roundoff */
pp->p_size = ((double)pp->p_size/100) * free_space;
total_size += pp->p_size;
diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c
index 521be4a..40a36f5 100644
--- a/sbin/mount_ifs/mount.c
+++ b/sbin/mount_ifs/mount.c
@@ -126,13 +126,6 @@ main(argc, argv)
int argc;
char * const argv[];
{
- const char *mntfromname, **vfslist, *vfstype;
- struct fstab *fs;
- struct statfs *mntbuf;
- FILE *mountdfp;
- pid_t pid;
- int all, ch, i, init_flags, mntsize, rval, have_fstab;
- char *options;
mount_ifs(argc, argv);
/* NOTREACHED */
diff --git a/sbin/mount_ntfs/mount_ntfs.c b/sbin/mount_ntfs/mount_ntfs.c
index 9dbd5fb..b01e422 100644
--- a/sbin/mount_ntfs/mount_ntfs.c
+++ b/sbin/mount_ntfs/mount_ntfs.c
@@ -68,7 +68,7 @@ main(argc, argv)
struct ntfs_args args;
struct stat sb;
int c, mntflags, set_gid, set_uid, set_mask, error;
- char *dev, *dir, ndir[MAXPATHLEN+1], mntpath[MAXPATHLEN];
+ char *dev, *dir, mntpath[MAXPATHLEN];
#if __FreeBSD_version >= 300000
struct vfsconf vfc;
#else
OpenPOWER on IntegriCloud