summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-05-02 01:49:42 +0000
committeraraujo <araujo@FreeBSD.org>2016-05-02 01:49:42 +0000
commitb9642c7349dd7af1833d3b2219914b1ec951d410 (patch)
tree65df8f1b3344bc5f8deae382aa48aa01c713e768
parent0c8564e5c072651d3ad7f78679054d7104e74816 (diff)
downloadFreeBSD-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.c2
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;
}
OpenPOWER on IntegriCloud