Fix for PR libc/1573 committed

Andreas Jaeger aj@suse.de
Fri May 26 02:08:00 GMT 2000


FYI I'll commit later the appended patch to both branches.

Andreas

2000-05-26  Andreas Jaeger  <aj@suse.de>

	* sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
	Closes PR libc/1573, reported by Bradley White
	<bww@laurelnetworks.com>.

============================================================
Index: sunrpc/xdr_intXX_t.c
--- sunrpc/xdr_intXX_t.c	2000/03/03 20:55:03	1.3
+++ sunrpc/xdr_intXX_t.c	2000/05/26 09:07:17
@@ -187,11 +187,11 @@
 
   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;

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de


More information about the Libc-hacker mailing list