git: 07f2ed5ce882 - main - socket: Make the sopt_rights field a pointer to const
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Aug 2024 23:05:30 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=07f2ed5ce88293b5008a27d1868f47eb8cbd25e2
commit 07f2ed5ce88293b5008a27d1868f47eb8cbd25e2
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-07-11 17:24:35 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-08-12 22:53:26 +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
---
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 6cc8875a2665..bfe12d8510d7 100644
--- a/sys/sys/sockopt.h
+++ b/sys/sys/sockopt.h
@@ -51,7 +51,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 */
};