aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/xdr_intXX_t.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-05-26 09:16:40 +0000
committerAndreas Jaeger <aj@suse.de>2000-05-26 09:16:40 +0000
commit446e763b48ca29dafd14cb4c65212ac81786b4f0 (patch)
tree9ab580f382b5e2a0be2ab459883dd35443c83ed2 /sunrpc/xdr_intXX_t.c
parent81e43fc19bce4ea05feed84157f7fba5bf43d842 (diff)
downloadglibc-446e763b48ca29dafd14cb4c65212ac81786b4f0.tar
glibc-446e763b48ca29dafd14cb4c65212ac81786b4f0.tar.gz
glibc-446e763b48ca29dafd14cb4c65212ac81786b4f0.tar.bz2
glibc-446e763b48ca29dafd14cb4c65212ac81786b4f0.zip
Update.
Diffstat (limited to 'sunrpc/xdr_intXX_t.c')
-rw-r--r--sunrpc/xdr_intXX_t.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sunrpc/xdr_intXX_t.c b/sunrpc/xdr_intXX_t.c
index caf9309935..664422933a 100644
--- a/sunrpc/xdr_intXX_t.c
+++ b/sunrpc/xdr_intXX_t.c
@@ -187,11 +187,11 @@ xdr_uint8_t (XDR *xdrs, uint8_t *uip)
switch (xdrs->x_op)
{
- case XDR_DECODE:
- ut = (uint32_t) *uip;
- return XDR_GETINT32 (xdrs, (int32_t *) &ut);
case XDR_ENCODE:
- if (!XDR_PUTINT32 (xdrs, (int32_t *) &ut))
+ ut = (uint32_t) *uip;
+ return XDR_PUTINT32 (xdrs, (int32_t *) &ut);
+ case XDR_DECODE:
+ if (!XDR_GETINT32 (xdrs, (int32_t *) &ut))
return FALSE;
*uip = (uint8_t) ut;
return TRUE;