diff options
Diffstat (limited to 'sunrpc/xdr_mem.c')
-rw-r--r-- | sunrpc/xdr_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/xdr_mem.c b/sunrpc/xdr_mem.c index ac7c9541d0..d6241e7f7d 100644 --- a/sunrpc/xdr_mem.c +++ b/sunrpc/xdr_mem.c @@ -112,7 +112,7 @@ xdrmem_putlong(xdrs, lp) if ((xdrs->x_handy -= 4) < 0) return (FALSE); - *(int32_t *)xdrs->x_private = (long)htonl((u_long)(*(int32_t*)lp)); + *(int32_t *)xdrs->x_private = htonl(*lp); xdrs->x_private += 4; return (TRUE); } |