diff options
author | araujo <araujo@FreeBSD.org> | 2016-05-02 01:49:42 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-05-02 01:49:42 +0000 |
commit | b9642c7349dd7af1833d3b2219914b1ec951d410 (patch) | |
tree | 65df8f1b3344bc5f8deae382aa48aa01c713e768 | |
parent | 0c8564e5c072651d3ad7f78679054d7104e74816 (diff) | |
download | FreeBSD-src-b9642c7349dd7af1833d3b2219914b1ec951d410.zip FreeBSD-src-b9642c7349dd7af1833d3b2219914b1ec951d410.tar.gz |
Use MIN macro from sys/param.h.
MFC after: 2 weeks.
-rw-r--r-- | usr.sbin/mountd/mountd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index a9464f6..e4b04b0 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -3171,7 +3171,7 @@ makemask(struct sockaddr_storage *ssp, int bitlen) return (-1); for (i = 0; i < len; i++) { - bits = (bitlen > CHAR_BIT) ? CHAR_BIT : bitlen; + bits = MIN(CHAR_BIT, bitlen); *p++ = (u_char)~0 << (CHAR_BIT - bits); bitlen -= bits; } |