summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/rpcb_prot.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/rpc/rpcb_prot.c')
-rw-r--r--lib/libc/rpc/rpcb_prot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/rpc/rpcb_prot.c b/lib/libc/rpc/rpcb_prot.c
index 5c199d8..f766749 100644
--- a/lib/libc/rpc/rpcb_prot.c
+++ b/lib/libc/rpc/rpcb_prot.c
@@ -320,11 +320,13 @@ xdr_netbuf(xdrs, objp)
struct netbuf *objp;
{
bool_t dummy;
+ void **pp;
if (!xdr_u_int32_t(xdrs, (u_int32_t *) &objp->maxlen)) {
return (FALSE);
}
- dummy = xdr_bytes(xdrs, (char **)&(objp->buf),
+ pp = &objp->buf;
+ dummy = xdr_bytes(xdrs, (char **) pp,
(u_int *)&(objp->len), objp->maxlen);
return (dummy);
}
OpenPOWER on IntegriCloud