summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-22 03:43:06 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-22 03:43:06 +0000
commite15ebdf90ee0a1232b342f9f088a656f7c8862e4 (patch)
tree01daff507f78f01b172d9c03e7f41dcf2f0a9486 /usr.bin
parent244576d3c3fc0fdad6787ed6b885efc9ed781bb9 (diff)
downloadFreeBSD-src-e15ebdf90ee0a1232b342f9f088a656f7c8862e4.zip
FreeBSD-src-e15ebdf90ee0a1232b342f9f088a656f7c8862e4.tar.gz
Use macro MAX() from sys/param.h.
MFC after: 2 weeks.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/stat/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c
index 120febe..77f0611 100644
--- a/usr.bin/stat/stat.c
+++ b/usr.bin/stat/stat.c
@@ -1025,7 +1025,7 @@ format1(const struct stat *st,
*
* Nanoseconds: long.
*/
- (void)snprintf(tmp, sizeof(tmp), "%dld", prec > 9 ? 9 : prec);
+ (void)snprintf(tmp, sizeof(tmp), "%dld", MAX(9, prec));
(void)strcat(lfmt, tmp);
/*
OpenPOWER on IntegriCloud