mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-11 04:42:16 +01:00
Use MIN() macro from sys/param.h.
MFC after: 2 weeks.
This commit is contained in:
parent
7de7df1554
commit
a301044615
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298682
@ -266,8 +266,8 @@ prthumanval(int len, u_int64_t bytes)
|
||||
/*
|
||||
* Limit the width to 5 bytes as that is what users expect.
|
||||
*/
|
||||
humanize_number(buf, sizeof(buf) < 5 ? sizeof(buf) : 5, bytes, "",
|
||||
HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL);
|
||||
humanize_number(buf, MIN(sizeof(buf), 5), bytes, "",
|
||||
HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL);
|
||||
|
||||
(void)printf(" %*s", len, buf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user