From bafaf11c30d95455fb9a674fc8827792f730343f Mon Sep 17 00:00:00 2001 From: eadler Date: Wed, 6 Jun 2018 06:42:12 +0000 Subject: [PATCH] top(1): make error message happy We don't use a "size" variable, so just don't report it. Reported by: bapt --- usr.bin/top/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 5770f50876da..ba6866d83e1d 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -379,7 +379,7 @@ machine_init(struct statics *statics) GETSYSCTL("kern.smp.maxcpus", maxcpu); times = calloc(maxcpu * CPUSTATES, sizeof(long)); if (times == NULL) - err(1, "calloc %zu bytes", size); + err(1, "calloc for kern.smp.maxcpus", size); size = sizeof(long) * maxcpu * CPUSTATES; if (sysctlbyname("kern.cp_times", times, &size, NULL, 0) == -1) err(1, "sysctlbyname kern.cp_times");