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_rec.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_rec.c')
-rw-r--r-- | libc/inet/rpc/xdr_rec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/inet/rpc/xdr_rec.c b/libc/inet/rpc/xdr_rec.c index 87d50abd0..3ad7d7275 100644 --- a/libc/inet/rpc/xdr_rec.c +++ b/libc/inet/rpc/xdr_rec.c @@ -177,9 +177,7 @@ xdrrec_create (XDR *xdrs, u_int sendsize, /* * now the rest ... */ - /* 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_ops = &xdrrec_ops; xdrs->x_private = (caddr_t) rstrm; rstrm->tcp_handle = tcp_handle; rstrm->readit = readit; |