summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 08:40:30 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 08:40:30 +0000
commit62de00801c704ef1f2711a385c2260ffaed6add6 (patch)
treeb9c733abd1e91955b0dc09938b59c5857525f4dd /libc/inet/rpc
parent1a21daadde12abfbb148b0bf07b26fbb56aa410a (diff)
rpc: should check against max for int32, not int
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r--libc/inet/rpc/xdr_rec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/inet/rpc/xdr_rec.c b/libc/inet/rpc/xdr_rec.c
index 43dff2206..b010ab446 100644
--- a/libc/inet/rpc/xdr_rec.c
+++ b/libc/inet/rpc/xdr_rec.c
@@ -68,7 +68,7 @@ static bool_t xdrrec_getbytes (XDR *, caddr_t, u_int);
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 int32_t *xdrrec_inline (XDR *, u_int);
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 @@ xdrrec_getint32 (XDR *xdrs, int32_t *ip)
return TRUE;
}
-#if ULONG_MAX != UINT_MAX
+#if ULONG_MAX != 0xffffffff
static bool_t
xdrrec_getlong (XDR *xdrs, long *lp)
{
@@ -283,7 +283,7 @@ xdrrec_putint32 (XDR *xdrs, const int32_t *ip)
return TRUE;
}
-#if ULONG_MAX != UINT_MAX
+#if ULONG_MAX != 0xffffffff
static bool_t
xdrrec_putlong (XDR *xdrs, const long *lp)
{