From 55187f6263c7ed607f814becbb77e89a65561290 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 16 Dec 2002 10:25:28 +0000 Subject: 2002-12-16 Roland McGrath * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type. * sunrpc/xdr_rec.c (xdrrec_inline): Likewise. * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise. --- sunrpc/xdr_mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sunrpc/xdr_mem.c') diff --git a/sunrpc/xdr_mem.c b/sunrpc/xdr_mem.c index 72bccc1d0d..e3167de040 100644 --- a/sunrpc/xdr_mem.c +++ b/sunrpc/xdr_mem.c @@ -48,7 +48,7 @@ static bool_t xdrmem_getbytes (XDR *, caddr_t, u_int); static bool_t xdrmem_putbytes (XDR *, const char *, u_int); static u_int xdrmem_getpos (const XDR *); static bool_t xdrmem_setpos (XDR *, u_int); -static int32_t *xdrmem_inline (XDR *, int); +static int32_t *xdrmem_inline (XDR *, u_int); static void xdrmem_destroy (XDR *); static bool_t xdrmem_getint32 (XDR *, int32_t *); static bool_t xdrmem_putint32 (XDR *, const int32_t *); @@ -191,11 +191,11 @@ xdrmem_setpos (xdrs, pos) * xdrs modified */ static int32_t * -xdrmem_inline (XDR *xdrs, int len) +xdrmem_inline (XDR *xdrs, u_int len) { int32_t *buf = 0; - if (xdrs->x_handy >= (u_int) len) + if (xdrs->x_handy >= len) { xdrs->x_handy -= len; buf = (int32_t *) xdrs->x_private; -- cgit v1.2.3