]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libipsec: make const-correct
authorLexi Winter <lexi@le-Fay.ORG>
Mon, 22 Apr 2024 21:56:24 +0000 (15:56 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 23 Apr 2024 04:36:34 +0000 (22:36 -0600)
commit50ecbc5142e1c58f2132b351da19c5e4aa5f4e6a
treea54575cc113cf41a7a56871276878456c392244a
parentc0f02dcd4c9c17181c59fa3c43259cce793a0b21
libipsec: make const-correct

- add const to the appropriate places in the libipsec public API and the
  relevant internal functions needed to support that.

- replace caddr_t with c_caddr_t in ipsec_dump_policy()

- update the ipsec_dump_policy manpage to use c_caddr_t (this manpage
  was already wrong as it had "char *" instead of caddr_t previously).

While here, update pfkeyv2.h to not cast away const in the PFKEY_*()
macros.

This should not cause any ABI changes as the actual types have not
changed.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1099
lib/libipsec/ipsec_dump_policy.c
lib/libipsec/ipsec_get_policylen.c
lib/libipsec/ipsec_set_policy.3
lib/libipsec/policy_parse.y
sys/net/pfkeyv2.h
sys/netipsec/ipsec.h