Author: pfg Date: Mon May 2 02:15:05 2016 New Revision: 298914 URL: https://svnweb.freebsd.org/changeset/base/298914
Log: rpcbind: use our roundup() macro when available through <sys/param.h>. No functional change. Modified: head/usr.sbin/rpcbind/rpcb_svc_com.c Modified: head/usr.sbin/rpcbind/rpcb_svc_com.c ============================================================================== --- head/usr.sbin/rpcbind/rpcb_svc_com.c Mon May 2 02:13:22 2016 (r298913) +++ head/usr.sbin/rpcbind/rpcb_svc_com.c Mon May 2 02:15:05 2016 (r298914) @@ -634,7 +634,7 @@ rpcbproc_callit_com(struct svc_req *rqst /* * 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? */ _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"