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
@ -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…
x
Reference in New Issue
Block a user