diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-18 21:22:12 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:27 +0200 |
commit | 8bb1bab7542944a3ce1b9c92fcb2ec6731806ae4 (patch) | |
tree | 5370d426ef2486d970c09f557a64dffcb857c414 /libc/inet/rpc/xdr_stdio.c | |
parent | 3da72862b8cda600702815e6450add3906b98b59 (diff) |
rpc: constify some more data
Comments in header were used by vda on a similar commit
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/inet/rpc/xdr_stdio.c')
-rw-r--r-- | libc/inet/rpc/xdr_stdio.c | 4 |
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; |