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 /include | |
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 'include')
-rw-r--r-- | include/rpc/auth.h | 4 | ||||
-rw-r--r-- | include/rpc/xdr.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/rpc/auth.h b/include/rpc/auth.h index 1d5198ca4..e2c7987dc 100644 --- a/include/rpc/auth.h +++ b/include/rpc/auth.h @@ -96,6 +96,10 @@ struct AUTH { struct opaque_auth ah_cred; struct opaque_auth ah_verf; union des_block ah_key; + /* 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 auth_ops { void (*ah_nextverf) (AUTH *); int (*ah_marshal) (AUTH *, XDR *); /* nextverf & serialize */ 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); |