git: 647f70e6bf42 - stable/12 - df: remove the unused fstype var
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Apr 2022 11:12:45 UTC
The branch stable/12 has been updated by se:
URL: https://cgit.FreeBSD.org/src/commit/?id=647f70e6bf4213f3a892277fcafe2c36d81aa3a5
commit 647f70e6bf4213f3a892277fcafe2c36d81aa3a5
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-07-20 17:00:50 +0000
Commit: Stefan Eßer <se@FreeBSD.org>
CommitDate: 2022-04-18 08:44:23 +0000
df: remove the unused fstype var
Found with cc --analyze
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 570b31f61009fb60591cf5fcc26f0f5c12ff5752)
(cherry picked from commit ede6e97b828dec1bb9aee4e69c2f8b4e437ebef7)
---
bin/df/df.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/bin/df/df.c b/bin/df/df.c
index ed7d319388cf..4de8c639bc75 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -139,7 +139,6 @@ main(int argc, char *argv[])
int iovlen = 0;
#endif
- fstype = "ufs";
(void)setlocale(LC_ALL, "");
memset(&maxwidths, 0, sizeof(maxwidths));
memset(&totalbuf, 0, sizeof(totalbuf));
@@ -213,7 +212,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':