diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-07-08 21:07:20 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-07-08 21:07:20 +0000 |
commit | d8bd1c585ae2124f99c45bc7a291df5dfed842c4 (patch) | |
tree | 9ccf94196fd30ee28874015d3c2d4371386b01d7 /sys/netinet/ip_ipcomp.c | |
parent | 56e57cbf8690527f3871deeb888ee1ea07a84a29 (diff) |
The xformsw array never changes. Declare struct xformsw constant
and map data read only.
OK deraadt@ mvs@ mpi@
Diffstat (limited to 'sys/netinet/ip_ipcomp.c')
-rw-r--r-- | sys/netinet/ip_ipcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipcomp.c b/sys/netinet/ip_ipcomp.c index 5f9433fd5bd..1b29d702593 100644 --- a/sys/netinet/ip_ipcomp.c +++ b/sys/netinet/ip_ipcomp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipcomp.c,v 1.70 2021/07/08 15:13:14 bluhm Exp $ */ +/* $OpenBSD: ip_ipcomp.c,v 1.71 2021/07/08 21:07:19 bluhm Exp $ */ /* * Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org) @@ -80,7 +80,7 @@ ipcomp_attach(void) * ipcomp_init() is called when an CPI is being set up. */ int -ipcomp_init(struct tdb *tdbp, struct xformsw *xsp, struct ipsecinit *ii) +ipcomp_init(struct tdb *tdbp, const struct xformsw *xsp, struct ipsecinit *ii) { const struct comp_algo *tcomp = NULL; struct cryptoini cric; |