From 737547be99fd9afffbdf3f7ac817da0a06fffc9e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 5 Jun 1998 20:59:11 +0000 Subject: Update. 1998-06-05 Ulrich Drepper * sunrpc/xdr_rec.c (xdrrec_create): Add cast for *_ops array since we cannot declare the struct element as const. * sunrpc/xdr_mem.c (xdrmem_create): Likewise. * sunrpc/xdr_stdio.c (xdrstdio_create): Likewise. 1998-06-04 Andreas Schwab * manual/Makefile: Include ../Makeconfig earlier. (MAKEINFO, TEXI2DVI): Use defaults if ../Makeconfig does not exist. (dir-add.texinfo): Remove useless $(SHELL). 1998-06-04 Andreas Schwab * Makefile (others): Build programs from install-bin. * configure.in: Modify config.make only if is was just created and move that command to second argument of AC_OUTPUT. Add command to set config_vars in config.status. 1998-06-04 Andreas Schwab * malloc/Makefile (address-width): Fix conditional. --- sunrpc/xdr_mem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sunrpc/xdr_mem.c') diff --git a/sunrpc/xdr_mem.c b/sunrpc/xdr_mem.c index 028329c34e..47b87eaf7a 100644 --- a/sunrpc/xdr_mem.c +++ b/sunrpc/xdr_mem.c @@ -80,7 +80,9 @@ xdrmem_create (xdrs, addr, size, op) { 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; } -- cgit v1.2.3