Date: Sun, 25 Jul 2021 07:03:08 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: ede6e97b828d - stable/13 - df: remove the unused fstype var Message-ID: <202107250703.16P738E4050508@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=ede6e97b828dec1bb9aee4e69c2f8b4e437ebef7 commit ede6e97b828dec1bb9aee4e69c2f8b4e437ebef7 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-07-20 17:00:50 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2021-07-25 07:00:42 +0000 df: remove the unused fstype var Found with cc --analyze Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 570b31f61009fb60591cf5fcc26f0f5c12ff5752) --- bin/df/df.c | 3 --- 1 file changed, 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':
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107250703.16P738E4050508>