diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-02 02:15:05 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-02 02:15:05 +0000 |
commit | fb39a70cdf5924f5715358e557bfb62bde7c6d34 (patch) | |
tree | 07eae9774c70b81f34b92487babe62a3c7c26a01 /usr.sbin | |
parent | e7cb48074e72aa8209dfd5e9c378956d91bd7ab3 (diff) | |
download | FreeBSD-src-fb39a70cdf5924f5715358e557bfb62bde7c6d34.zip FreeBSD-src-fb39a70cdf5924f5715358e557bfb62bde7c6d34.tar.gz |
rpcbind: use our roundup() macro when available through <sys/param.h>.
No functional change.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpcbind/rpcb_svc_com.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rpcbind/rpcb_svc_com.c b/usr.sbin/rpcbind/rpcb_svc_com.c index 2ee2a4c..5c6b8dd 100644 --- a/usr.sbin/rpcbind/rpcb_svc_com.c +++ b/usr.sbin/rpcbind/rpcb_svc_com.c @@ -634,7 +634,7 @@ rpcbproc_callit_com(struct svc_req *rqstp, SVCXPRT *transp, /* * Should be multiple of 4 for XDR. */ - sendsz = ((sendsz + 3) / 4) * 4; + sendsz = roundup(sendsz, 4); if (sendsz > RPC_BUF_MAX) { #ifdef notyet buf_alloc = alloca(sendsz); /* not in IDR2? */ |