top(1): make error message happy

We don't use a "size" variable, so just don't report it.

Reported by:	bapt
This commit is contained in:
Eitan Adler 2018-06-06 06:42:12 +00:00
parent a41372abd4
commit bca1b45bb1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334704

View File

@ -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");