summaryrefslogtreecommitdiff
path: root/sunrpc/xdr_rec.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-06-05 20:59:11 +0000
committerUlrich Drepper <drepper@redhat.com>1998-06-05 20:59:11 +0000
commit737547be99fd9afffbdf3f7ac817da0a06fffc9e (patch)
tree1f4b745192aafdaeb4af2cbefb7cab325ac6e7ac /sunrpc/xdr_rec.c
parentc6bd526f49f11784f7c1d2f694538981fa573ca1 (diff)
downloadglibc-737547be99fd9afffbdf3f7ac817da0a06fffc9e.tar.gz
Update.
1998-06-05 Ulrich Drepper <drepper@cygnus.com> * 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 <schwab@issan.informatik.uni-dortmund.de> * 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 <schwab@issan.informatik.uni-dortmund.de> * 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 <schwab@issan.informatik.uni-dortmund.de> * malloc/Makefile (address-width): Fix conditional.
Diffstat (limited to 'sunrpc/xdr_rec.c')
-rw-r--r--sunrpc/xdr_rec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sunrpc/xdr_rec.c b/sunrpc/xdr_rec.c
index f855b3d90e..a4e28b0548 100644
--- a/sunrpc/xdr_rec.c
+++ b/sunrpc/xdr_rec.c
@@ -169,7 +169,9 @@ xdrrec_create (XDR *xdrs, u_int sendsize,
/*
* now the rest ...
*/
- xdrs->x_ops = &xdrrec_ops;
+ /* We have to add the const since the `struct xdr_ops' in `struct XDR'
+ is not `const'. */
+ xdrs->x_ops = (struct xdr_ops *) &xdrrec_ops;
xdrs->x_private = (caddr_t) rstrm;
rstrm->tcp_handle = tcp_handle;
rstrm->readit = readit;