Nuke unused variables.

This commit is contained in:
Dima Dorfman 2001-06-24 23:31:07 +00:00
parent a8b81a75df
commit 384d80b3b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78735
4 changed files with 1 additions and 14 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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 */

View File

@ -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