summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/xdr_stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/rpc/xdr_stdio.c')
-rw-r--r--libc/inet/rpc/xdr_stdio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/inet/rpc/xdr_stdio.c b/libc/inet/rpc/xdr_stdio.c
index 6a5e06edc..6a18fce08 100644
--- a/libc/inet/rpc/xdr_stdio.c
+++ b/libc/inet/rpc/xdr_stdio.c
@@ -78,9 +78,7 @@ void
xdrstdio_create (XDR *xdrs, FILE *file, enum xdr_op op)
{
xdrs->x_op = op;
- /* We have to add the const since the `struct xdr_ops' in `struct XDR'
- is not `const'. */
- xdrs->x_ops = (struct xdr_ops *) &xdrstdio_ops;
+ xdrs->x_ops = &xdrstdio_ops;
xdrs->x_private = (caddr_t) file;
xdrs->x_handy = 0;
xdrs->x_base = 0;