From 9a6a1cbee41c286f9b1aa7ace6eafb7303623db4 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Mon, 11 May 1998 09:10:38 +0000 Subject: [PATCH] Cast a pointer to a long, not an int and make the arg passed to the function a long too (it does have a proper prototype). --- lib/libc/xdr/xdr_sizeof.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/xdr/xdr_sizeof.c b/lib/libc/xdr/xdr_sizeof.c index e9c6a19de125..5a4c1a78dc08 100644 --- a/lib/libc/xdr/xdr_sizeof.c +++ b/lib/libc/xdr/xdr_sizeof.c @@ -81,7 +81,7 @@ x_setpostn(xdrs, pos) static int32_t * x_inline(xdrs, len) XDR *xdrs; - int len; + long len; { if (len == 0) { return (NULL); @@ -89,7 +89,7 @@ x_inline(xdrs, len) if (xdrs->x_op != XDR_ENCODE) { return (NULL); } - if (len < (int) xdrs->x_base) { + if (len < (long) xdrs->x_base) { /* x_private was already allocated */ xdrs->x_handy += len; return ((int32_t *) xdrs->x_private);