git: 63398f340041 - stable/14 - socket: Make the sopt_rights field a pointer to const
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Aug 2024 14:05:31 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=63398f340041fe630e56f9daccd62920adc85796
commit 63398f340041fe630e56f9daccd62920adc85796
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-07-11 17:24:35 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-08-20 13:22:56 +0000
socket: Make the sopt_rights field a pointer to const
No functional change intended.
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
(cherry picked from commit 07f2ed5ce88293b5008a27d1868f47eb8cbd25e2)
---
sys/sys/sockopt.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/sys/sockopt.h b/sys/sys/sockopt.h
index b139062cf492..02312eed5439 100644
--- a/sys/sys/sockopt.h
+++ b/sys/sys/sockopt.h
@@ -53,7 +53,7 @@ struct sockopt {
int sopt_name; /* third arg of [gs]etsockopt */
void *sopt_val; /* fourth arg of [gs]etsockopt */
size_t sopt_valsize; /* (almost) fifth arg of [gs]etsockopt */
- struct cap_rights *sopt_rights; /* Capsicum rights attached to the fd */
+ const struct cap_rights *sopt_rights; /* Capsicum rights for the fd */
struct thread *sopt_td; /* calling thread or null if kernel */
};