From 5e8e3020872b759228581fecb07f1f52cf0449e1 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 7 Feb 2022 14:51:18 -0700 Subject: [PATCH] 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 bccc00f6516..ae05a1bfe11 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;