aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-07-11 17:24:35 +0000
committerMark Johnston <markj@FreeBSD.org>2024-08-12 22:53:26 +0000
commit07f2ed5ce88293b5008a27d1868f47eb8cbd25e2 (patch)
treeb423ef02a896c330acc6866da05209b181ad1c0a
parent0a8e5aaa97dad579b5489b11a4729da354c0bd74 (diff)
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
-rw-r--r--sys/sys/sockopt.h2
1 files changed, 1 insertions, 1 deletions
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 */
};