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 --- include/rpc/xdr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/rpc/xdr.h') diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index ec6cd4c7e..f4756acd0 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -112,6 +112,10 @@ typedef struct XDR XDR; struct XDR { enum xdr_op x_op; /* operation; fast additional param */ + /* not sure whether non-const-ness is a part of the spec... if it is, + * enclose "const" in #ifdef _LIBC / #endif + * to make it effective only for libc compile */ + const struct xdr_ops { bool_t (*x_getlong) (XDR *__xdrs, long *__lp); -- cgit v1.2.3