From 8bb1bab7542944a3ce1b9c92fcb2ec6731806ae4 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 18 Mar 2011 21:22:12 +0100 Subject: rpc: constify some more data Comments in header were used by vda on a similar commit Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/inet/rpc/xdr_mem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libc/inet/rpc/xdr_mem.c') diff --git a/libc/inet/rpc/xdr_mem.c b/libc/inet/rpc/xdr_mem.c index c58fc450a..6773b56e2 100644 --- a/libc/inet/rpc/xdr_mem.c +++ b/libc/inet/rpc/xdr_mem.c @@ -77,9 +77,7 @@ void xdrmem_create (XDR *xdrs, const caddr_t addr, u_int size, 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 *) &xdrmem_ops; + xdrs->x_ops = &xdrmem_ops; xdrs->x_private = xdrs->x_base = addr; xdrs->x_handy = size; } -- cgit v1.2.3