about summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-03 21:07:41 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-03 21:07:41 +0000
commitbdd5fccdeed418f2f79e25aa04a0b06171300c49 (patch)
treebe9d8fe4ea6a1e32f4afd0ac7dc62cb097790a50 /sunrpc
parent2f1afc880bee4e2f9ebba5eefb45e51c29eaf7ee (diff)
downloadglibc-bdd5fccdeed418f2f79e25aa04a0b06171300c49.tar.gz
glibc-bdd5fccdeed418f2f79e25aa04a0b06171300c49.tar.xz
glibc-bdd5fccdeed418f2f79e25aa04a0b06171300c49.zip
Update.
2000-03-03  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
	call.
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/xdr.c2
-rw-r--r--sunrpc/xdr_intXX_t.c14
2 files changed, 9 insertions, 7 deletions
diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
index 6f1aed742f..0cb5f25332 100644
--- a/sunrpc/xdr.c
+++ b/sunrpc/xdr.c
@@ -200,7 +200,7 @@ bool_t
 xdr_hyper (XDR *xdrs, quad_t *llp)
 {
   long t1;
-  long t2;
+  unsigned long int t2;
 
   if (xdrs->x_op == XDR_ENCODE)
     {
diff --git a/sunrpc/xdr_intXX_t.c b/sunrpc/xdr_intXX_t.c
index e50859e2aa..caf9309935 100644
--- a/sunrpc/xdr_intXX_t.c
+++ b/sunrpc/xdr_intXX_t.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (c) 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1998.
 
@@ -25,7 +25,9 @@ bool_t
 xdr_int64_t (XDR *xdrs, int64_t *ip)
 {
   int32_t t1;
-  int32_t t2;
+  /* This must be unsigned, otherwise we get problems with sign
+     extension in the DECODE case.  */
+  uint32_t t2;
 
   switch (xdrs->x_op)
     {
@@ -139,11 +141,11 @@ xdr_uint16_t (XDR *xdrs, uint16_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 = (uint16_t) ut;
       return TRUE;