diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/rpc/auth.h | 4 | ||||
-rw-r--r-- | include/rpc/clnt.h | 4 | ||||
-rw-r--r-- | include/rpc/svc.h | 4 | ||||
-rw-r--r-- | include/rpc/xdr.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/include/rpc/auth.h b/include/rpc/auth.h index 1cd94bb7a88..3442082967d 100644 --- a/include/rpc/auth.h +++ b/include/rpc/auth.h @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.h,v 1.8 2015/09/13 12:29:03 guenther Exp $ */ +/* $OpenBSD: auth.h,v 1.9 2022/02/14 03:38:59 guenther Exp $ */ /* $NetBSD: auth.h,v 1.7 1995/04/29 05:27:55 cgd Exp $ */ /* @@ -101,7 +101,7 @@ typedef struct __rpc_auth { struct opaque_auth ah_cred; struct opaque_auth ah_verf; union des_block ah_key; - struct auth_ops { + const struct auth_ops { void (*ah_nextverf)(struct __rpc_auth *); /* nextverf & serialize */ int (*ah_marshal)(struct __rpc_auth *, XDR *); diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h index e5a62e3cb25..3c21ef19bc1 100644 --- a/include/rpc/clnt.h +++ b/include/rpc/clnt.h @@ -1,4 +1,4 @@ -/* $OpenBSD: clnt.h,v 1.11 2010/09/01 14:43:34 millert Exp $ */ +/* $OpenBSD: clnt.h,v 1.12 2022/02/14 03:38:59 guenther Exp $ */ /* $NetBSD: clnt.h,v 1.6 1995/04/29 05:27:58 cgd Exp $ */ /* @@ -118,7 +118,7 @@ struct rpc_err { */ typedef struct __rpc_client { AUTH *cl_auth; /* authenticator */ - struct clnt_ops { + const struct clnt_ops { /* call remote procedure */ enum clnt_stat (*cl_call)(struct __rpc_client *, unsigned long, xdrproc_t, caddr_t, diff --git a/include/rpc/svc.h b/include/rpc/svc.h index 7402420a07c..ae7ae904b20 100644 --- a/include/rpc/svc.h +++ b/include/rpc/svc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: svc.h,v 1.16 2016/08/27 04:28:28 guenther Exp $ */ +/* $OpenBSD: svc.h,v 1.17 2022/02/14 03:38:59 guenther Exp $ */ /* $NetBSD: svc.h,v 1.9 1995/04/29 05:28:01 cgd Exp $ */ /* @@ -78,7 +78,7 @@ enum xprt_stat { typedef struct __rpc_svcxprt { int xp_sock; unsigned short xp_port; /* associated port number */ - struct xp_ops { + const struct xp_ops { /* receive incoming requests */ bool_t (*xp_recv)(struct __rpc_svcxprt *, struct rpc_msg *); diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 1f0532a1191..126ecec54f9 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: xdr.h,v 1.12 2010/09/01 14:43:34 millert Exp $ */ +/* $OpenBSD: xdr.h,v 1.13 2022/02/14 03:38:59 guenther Exp $ */ /* $NetBSD: xdr.h,v 1.7 1995/04/29 05:28:06 cgd Exp $ */ /* @@ -99,7 +99,7 @@ enum xdr_op { */ typedef struct __rpc_xdr { enum xdr_op x_op; /* operation; fast additional param */ - struct xdr_ops { + const struct xdr_ops { /* get a long from underlying stream */ bool_t (*x_getlong)(struct __rpc_xdr *, long *); /* put a long to " */ |