mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00:00
Cast size_t variables before printing them to cope with the case of
sizeof(size_t) != sizeof(int).
This commit is contained in:
parent
adf08670f2
commit
e0038fe587
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77553
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue