diff options
author | tmm <tmm@FreeBSD.org> | 2001-05-31 22:36:51 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-05-31 22:36:51 +0000 |
commit | b1d338257d4aeef6b96fb73a3c7d4b906684b998 (patch) | |
tree | caf7f3e4b52e84abb2d91abaa8440f90cee20d53 | |
parent | 0f3efaef0a4434de0a0248f3e7537dcf7ce56526 (diff) | |
download | FreeBSD-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).
-rw-r--r-- | usr.bin/top/machine.c | 4 |
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); } } |