git: 5e8e3020872b - main - systat: Eliminate write-only unit variable

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 07 Feb 2022 21:51:56 UTC
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;