aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/quota/quota.c
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-27 02:13:57 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-27 02:13:57 +0000
commita301044615be64886258759bcac963a865ab9fe7 (patch)
tree54ee1d2aa89877d600ed699d21cc8716fa2bd230 /usr.bin/quota/quota.c
parent7de7df15549e696db069c01a599c83d0586fe223 (diff)
downloadsrc-a301044615be64886258759bcac963a865ab9fe7.tar.gz
src-a301044615be64886258759bcac963a865ab9fe7.zip
Use MIN() macro from sys/param.h.
MFC after: 2 weeks.
Notes
Notes: svn path=/head/; revision=298682
Diffstat (limited to 'usr.bin/quota/quota.c')
-rw-r--r--usr.bin/quota/quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c
index c4b4cc313121..c88f2aaefd8a 100644
--- a/usr.bin/quota/quota.c
+++ b/usr.bin/quota/quota.c
@@ -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);
}