mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
Nuke unused variables.
This commit is contained in:
parent
a8b81a75df
commit
384d80b3b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78735
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user