diff --git a/usr.sbin/rwhod/rwhod.c b/usr.sbin/rwhod/rwhod.c index 2f589e2492e3..237663eef74d 100644 --- a/usr.sbin/rwhod/rwhod.c +++ b/usr.sbin/rwhod/rwhod.c @@ -478,7 +478,7 @@ sender_process(void) we->we_idle = htonl(now - stb.st_atime); } (void) getloadavg(avenrun, - sizeof(avenrun) / sizeof(avenrun[0])); + nitems(avenrun)); for (i = 0; i < 3; i++) mywd.wd_loadav[i] = htonl((u_long)(avenrun[i] * 100)); cc = (char *)wend - (char *)&mywd;