mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
rpcbind: use our roundup() macro when available through <sys/param.h>.
No functional change.
This commit is contained in:
parent
6e560add61
commit
e9fc928faa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298914
@ -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? */
|
||||
|
Loading…
Reference in New Issue
Block a user