summaryrefslogtreecommitdiff
path: root/sunrpc/xdr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-06-26 18:28:35 +0000
committerUlrich Drepper <drepper@redhat.com>2005-06-26 18:28:35 +0000
commitbb6e8ca30a0c8fab107d8f3d0ebeee6716ca365f (patch)
tree54a8215a557f3408c462774619e3eaed69f0a927 /sunrpc/xdr.c
parent35f1e82763326f196fd068e92343643d8ed54ee3 (diff)
* nscd/nscd_stat.c (receive_print_stats): Replace YESSTR/NOSTR
with own translation. * sunrpc/xdr.c (xdr_hyper, xdr_u_hyper): When decoding, cast t2 to uint32_t instead of ulong. * sunrpc/Makefile (tests): Add tst-xdrmem. * sunrpc/tst-xdrmem.c: New test.
Diffstat (limited to 'sunrpc/xdr.c')
-rw-r--r--sunrpc/xdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
index 411cbe1ab1..1f25e3e9c0 100644
--- a/sunrpc/xdr.c
+++ b/sunrpc/xdr.c
@@ -239,7 +239,7 @@ xdr_hyper (XDR *xdrs, quad_t *llp)
if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, &t2))
return FALSE;
*llp = ((quad_t) t1) << 32;
- *llp |= (unsigned long int) t2;
+ *llp |= (uint32_t) t2;
return TRUE;
}
@@ -272,7 +272,7 @@ xdr_u_hyper (XDR *xdrs, u_quad_t *ullp)
if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, &t2))
return FALSE;
*ullp = ((u_quad_t) t1) << 32;
- *ullp |= (unsigned long int) t2;
+ *ullp |= (uint32_t) t2;
return TRUE;
}