Date: Mon, 7 Feb 2022 21:51:56 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 5e8e3020872b - main - systat: Eliminate write-only unit variable Message-ID: <202202072151.217Lpu6U028848@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5e8e3020872b759228581fecb07f1f52cf0449e1 commit 5e8e3020872b759228581fecb07f1f52cf0449e1 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-02-07 21:51:18 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-02-07 21:51:45 +0000 systat: Eliminate write-only unit variable Sponsored by: Netflix --- usr.bin/systat/sysput.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.bin/systat/sysput.c b/usr.bin/systat/sysput.c index bccc00f65165..ae05a1bfe115 100644 --- a/usr.bin/systat/sysput.c +++ b/usr.bin/systat/sysput.c @@ -76,10 +76,9 @@ sysputXs(WINDOW *wd __unused, int row, int lcol, int width) void sysputuint64(WINDOW *wd, int row, int lcol, int width, uint64_t val, int flags) { - char unit, *start, wrtbuf[width + width + 1]; + char *start, wrtbuf[width + width + 1]; int len; - unit = 0; start = wrtbuf; flags |= HN_NOSPACE;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202072151.217Lpu6U028848>