2002-12-16 Roland McGrath <roland@redhat.com>
* sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type. * sunrpc/xdr_rec.c (xdrrec_inline): Likewise. * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
This commit is contained in:
parent
81fa937122
commit
55187f6263
|
@ -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;
|
||||
|
|
|
@ -61,7 +61,7 @@ static bool_t xdrrec_getbytes (XDR *, caddr_t, u_int);
|
|||
static bool_t xdrrec_putbytes (XDR *, const char *, u_int);
|
||||
static u_int xdrrec_getpos (const XDR *);
|
||||
static bool_t xdrrec_setpos (XDR *, u_int);
|
||||
static int32_t *xdrrec_inline (XDR *, int);
|
||||
static int32_t *xdrrec_inline (XDR *, u_int);
|
||||
static void xdrrec_destroy (XDR *);
|
||||
static bool_t xdrrec_getint32 (XDR *, int32_t *);
|
||||
static bool_t xdrrec_putint32 (XDR *, const int32_t *);
|
||||
|
@ -373,7 +373,7 @@ xdrrec_setpos (XDR *xdrs, u_int pos)
|
|||
}
|
||||
|
||||
static int32_t *
|
||||
xdrrec_inline (XDR *xdrs, int len)
|
||||
xdrrec_inline (XDR *xdrs, u_int len)
|
||||
{
|
||||
RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private;
|
||||
int32_t *buf = NULL;
|
||||
|
|
|
@ -55,7 +55,7 @@ static bool_t xdrstdio_getbytes (XDR *, caddr_t, u_int);
|
|||
static bool_t xdrstdio_putbytes (XDR *, const char *, u_int);
|
||||
static u_int xdrstdio_getpos (const XDR *);
|
||||
static bool_t xdrstdio_setpos (XDR *, u_int);
|
||||
static int32_t *xdrstdio_inline (XDR *, int);
|
||||
static int32_t *xdrstdio_inline (XDR *, u_int);
|
||||
static void xdrstdio_destroy (XDR *);
|
||||
static bool_t xdrstdio_getint32 (XDR *, int32_t *);
|
||||
static bool_t xdrstdio_putint32 (XDR *, const int32_t *);
|
||||
|
@ -157,7 +157,7 @@ xdrstdio_setpos (XDR *xdrs, u_int pos)
|
|||
}
|
||||
|
||||
static int32_t *
|
||||
xdrstdio_inline (XDR *xdrs, int len)
|
||||
xdrstdio_inline (XDR *xdrs, u_int len)
|
||||
{
|
||||
/*
|
||||
* Must do some work to implement this: must insure
|
||||
|
|
Loading…
Reference in a new issue