svn commit: r298914 - head/usr.sbin/rpcbind

Pedro F. Giffuni pfg at FreeBSD.org
Mon May 2 02:15:07 UTC 2016


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? */


More information about the svn-src-all mailing list