diff options
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/rpc/xdr.h | 8 | ||||
-rw-r--r-- | sunrpc/xdr_mem.c | 4 | ||||
-rw-r--r-- | sunrpc/xdr_rec.c | 4 | ||||
-rw-r--r-- | sunrpc/xdr_stdio.c | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/sunrpc/rpc/xdr.h b/sunrpc/rpc/xdr.h index 2c6522d849..c4bf67197d 100644 --- a/sunrpc/rpc/xdr.h +++ b/sunrpc/rpc/xdr.h @@ -132,7 +132,7 @@ struct XDR /* lets you reposition the stream */ long *(*x_inline) __P ((XDR * __xdrs, int len)); /* buf quick ptr to buffered data */ - void (*x_destroy) __P ((__const XDR * __xdrs)); + void (*x_destroy) __P ((XDR * __xdrs)); /* free privates of this xdr_stream */ } *x_ops; @@ -283,7 +283,7 @@ extern bool_t xdr_vector __P ((XDR * __xdrs, char *__basep, u_int __nelem, u_int __elemsize, xdrproc_t __xdr_elem)); extern bool_t xdr_float __P ((XDR * __xdrs, float *__fp)); extern bool_t xdr_double __P ((XDR * __xdrs, double *__dp)); -extern bool_t xdr_reference __P ((XDR * __xdrs, caddr_t * __pp, u_int __size, +extern bool_t xdr_reference __P ((XDR * __xdrs, caddr_t * __xpp, u_int __size, xdrproc_t __proc)); extern bool_t xdr_pointer __P ((XDR * __xdrs, char **__objpp, u_int __obj_size, xdrproc_t __xdr_obj)); @@ -310,11 +310,11 @@ extern bool_t xdr_netobj __P ((XDR * __xdrs, struct netobj * __np)); /* XDR using memory buffers */ extern void xdrmem_create __P ((XDR * __xdrs, __const caddr_t __addr, - u_int __size, enum xdr_op __op)); + u_int __size, enum xdr_op __xop)); /* XDR using stdio library */ extern void xdrstdio_create __P ((XDR * __xdrs, FILE * __file, - enum xdr_op __op)); + enum xdr_op __xop)); /* XDR pseudo records for tcp */ extern void xdrrec_create __P ((XDR * __xdrs, u_int __sendsize, diff --git a/sunrpc/xdr_mem.c b/sunrpc/xdr_mem.c index a67713e669..028329c34e 100644 --- a/sunrpc/xdr_mem.c +++ b/sunrpc/xdr_mem.c @@ -53,7 +53,7 @@ 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 long *xdrmem_inline (XDR *, int); -static void xdrmem_destroy (const XDR *); +static void xdrmem_destroy (XDR *); static const struct xdr_ops xdrmem_ops = { @@ -91,7 +91,7 @@ xdrmem_create (xdrs, addr, size, op) */ static void -xdrmem_destroy (const XDR *xdrs) +xdrmem_destroy (XDR *xdrs) { } diff --git a/sunrpc/xdr_rec.c b/sunrpc/xdr_rec.c index e39131c2c2..b8a4f511a7 100644 --- a/sunrpc/xdr_rec.c +++ b/sunrpc/xdr_rec.c @@ -60,7 +60,7 @@ 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 long *xdrrec_inline (XDR *, int); -static void xdrrec_destroy (const XDR *); +static void xdrrec_destroy (XDR *); static const struct xdr_ops xdrrec_ops = { @@ -404,7 +404,7 @@ xdrrec_inline (XDR *xdrs, int len) static void xdrrec_destroy (xdrs) - const XDR *xdrs; + XDR *xdrs; { RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private; diff --git a/sunrpc/xdr_stdio.c b/sunrpc/xdr_stdio.c index 67d9db9053..75c563daa9 100644 --- a/sunrpc/xdr_stdio.c +++ b/sunrpc/xdr_stdio.c @@ -52,7 +52,7 @@ 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 long *xdrstdio_inline (XDR *, int); -static void xdrstdio_destroy (const XDR *); +static void xdrstdio_destroy (XDR *); /* * Ops vector for stdio type XDR @@ -94,7 +94,7 @@ xdrstdio_create (xdrs, file, op) */ static void xdrstdio_destroy (xdrs) - const XDR *xdrs; + XDR *xdrs; { (void) fflush ((FILE *) xdrs->x_private); /* xx should we close the file ?? */ |