svn commit: trunk/uClibc/libc/inet/rpc

vda at uclibc.org vda at uclibc.org
Mon Dec 1 08:40:30 UTC 2008


Author: vda
Date: 2008-12-01 00:40:30 -0800 (Mon, 01 Dec 2008)
New Revision: 24197

Log:
rpc: should check against max for int32, not int



Modified:
   trunk/uClibc/libc/inet/rpc/xdr_rec.c


Changeset:
Modified: trunk/uClibc/libc/inet/rpc/xdr_rec.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/xdr_rec.c	2008-12-01 08:37:27 UTC (rev 24196)
+++ trunk/uClibc/libc/inet/rpc/xdr_rec.c	2008-12-01 08:40:30 UTC (rev 24197)
@@ -68,7 +68,7 @@
 static bool_t xdrrec_putbytes (XDR *, const char *, u_int);
 static bool_t xdrrec_getint32 (XDR *, int32_t *);
 static bool_t xdrrec_putint32 (XDR *, const int32_t *);
-#if ULONG_MAX != UINT_MAX
+#if ULONG_MAX != 0xffffffff
 static bool_t xdrrec_getlong (XDR *, long *);
 static bool_t xdrrec_putlong (XDR *, const long *);
 #endif
@@ -78,7 +78,7 @@
 static void xdrrec_destroy (XDR *);
 
 static const struct xdr_ops xdrrec_ops = {
-#if ULONG_MAX == UINT_MAX
+#if ULONG_MAX == 0xffffffff
   (bool_t (*)(XDR *, long *)) xdrrec_getint32,
   (bool_t (*)(XDR *, const long *)) xdrrec_putint32,
 #else
@@ -249,7 +249,7 @@
   return TRUE;
 }
 
-#if ULONG_MAX != UINT_MAX
+#if ULONG_MAX != 0xffffffff
 static bool_t
 xdrrec_getlong (XDR *xdrs, long *lp)
 {
@@ -283,7 +283,7 @@
   return TRUE;
 }
 
-#if ULONG_MAX != UINT_MAX
+#if ULONG_MAX != 0xffffffff
 static bool_t
 xdrrec_putlong (XDR *xdrs, const long *lp)
 {




More information about the uClibc-cvs mailing list