mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 06:12:01 +01:00
df: remove the unused fstype var
Found with cc --analyze Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
907257d696
commit
570b31f610
@ -114,13 +114,11 @@ main(int argc, char *argv[])
|
||||
struct statfs statfsbuf, totalbuf;
|
||||
struct maxwidths maxwidths;
|
||||
struct statfs *mntbuf;
|
||||
const char *fstype;
|
||||
char *mntpt;
|
||||
const char **vfslist;
|
||||
int i, mntsize;
|
||||
int ch, rv;
|
||||
|
||||
fstype = "ufs";
|
||||
(void)setlocale(LC_ALL, "");
|
||||
memset(&maxwidths, 0, sizeof(maxwidths));
|
||||
memset(&totalbuf, 0, sizeof(totalbuf));
|
||||
@ -194,7 +192,6 @@ main(int argc, char *argv[])
|
||||
xo_errx(1, "-l and -t are mutually exclusive.");
|
||||
if (vfslist != NULL)
|
||||
xo_errx(1, "only one -t option may be specified");
|
||||
fstype = optarg;
|
||||
vfslist = makevfslist(optarg);
|
||||
break;
|
||||
case 'T':
|
||||
|
Loading…
Reference in New Issue
Block a user