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 =
{
{
xdrs->x_op = op;
- xdrs->x_ops = &xdrmem_ops;
+ /* We have to add the const since the `struct xdr_ops' in `struct XDR'
+ is not `const'. */
+ xdrs->x_ops = (struct xdr_ops *) &xdrmem_ops;
xdrs->x_private = xdrs->x_base = addr;
xdrs->x_handy = size;
}
*/
static void
-xdrmem_destroy (const XDR *xdrs)
+xdrmem_destroy (XDR *xdrs)
{
}