summaryrefslogtreecommitdiffstats
path: root/usr.bin/top
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-05-31 22:36:51 +0000
committertmm <tmm@FreeBSD.org>2001-05-31 22:36:51 +0000
commitb1d338257d4aeef6b96fb73a3c7d4b906684b998 (patch)
treecaf7f3e4b52e84abb2d91abaa8440f90cee20d53 /usr.bin/top
parent0f3efaef0a4434de0a0248f3e7537dcf7ce56526 (diff)
downloadFreeBSD-src-b1d338257d4aeef6b96fb73a3c7d4b906684b998.zip
FreeBSD-src-b1d338257d4aeef6b96fb73a3c7d4b906684b998.tar.gz
Cast size_t variables before printing them to cope with the case of
sizeof(size_t) != sizeof(int).
Diffstat (limited to 'usr.bin/top')
-rw-r--r--usr.bin/top/machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 04a3741..99ea020 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -604,8 +604,8 @@ size_t len;
quit(23);
}
if (nlen != len) {
- fprintf(stderr, "top: sysctl(%s...) expected %d, got %d\n", name,
- len, nlen);
+ fprintf(stderr, "top: sysctl(%s...) expected %lu, got %lu\n", name,
+ (unsigned long)len, (unsigned long)nlen);
quit(23);
}
}
OpenPOWER on IntegriCloud