summaryrefslogtreecommitdiff
path: root/include/rpc/xdr.h
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2022-02-14 03:39:00 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2022-02-14 03:39:00 +0000
commit492d59e10c6cf446d78efdf7eb89665d70d3247f (patch)
treecf307e440a4c841033c3249e5cfcc4acd6d4b53c /include/rpc/xdr.h
parentf27b8b57416c30b6f7ebf5d2a5efde4ff11eebb0 (diff)
Mark all the rpc 'ops' vectors, for auth, client, service, and xdr,
as const, moving them from .data to .data.rel.ro. The other BSDs did this a long time ago; NetBSD did a chunk in 1998, which is long enough I didn't bother to get exact dates for others. ok deraadt@ millert@
Diffstat (limited to 'include/rpc/xdr.h')
-rw-r--r--include/rpc/xdr.h4
1 files changed, 2 insertions, 2 deletions
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 " */