mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
Use MIN() instead of MAX() as the previous syntax was wrote in a weird and
confused way: "prec > 9 ? 9 : prec". Submitted by: pfg, ngie and luke <luke.tw@gmail.com> MFC after: 2 weeks.
This commit is contained in:
parent
b0ab3725db
commit
5d49c30c7b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298599
@ -1025,7 +1025,7 @@ format1(const struct stat *st,
|
||||
*
|
||||
* Nanoseconds: long.
|
||||
*/
|
||||
(void)snprintf(tmp, sizeof(tmp), "%dld", MAX(9, prec));
|
||||
(void)snprintf(tmp, sizeof(tmp), "%dld", MIN(prec, 9));
|
||||
(void)strcat(lfmt, tmp);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user