Date: Mon, 2 May 2016 02:15:05 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298914 - head/usr.sbin/rpcbind Message-ID: <201605020215.u422F5nZ097081@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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? */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605020215.u422F5nZ097081>