aboutsummaryrefslogtreecommitdiff
path: root/bin/df
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-07-20 17:00:50 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-07-20 17:00:50 +0000
commit570b31f61009fb60591cf5fcc26f0f5c12ff5752 (patch)
tree629d6ea8fa4d52276e16a7926362003adc284889 /bin/df
parent907257d6967dd23506e69042c55bb1edc983c0ba (diff)
downloadsrc-570b31f61009fb60591cf5fcc26f0f5c12ff5752.tar.gz
src-570b31f61009fb60591cf5fcc26f0f5c12ff5752.zip
df: remove the unused fstype var
Found with cc --analyze Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'bin/df')
-rw-r--r--bin/df/df.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index a0d43fca5789..5a96eb9d58c4 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -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':