git: 3e148d60295d - stable/13 - select: Define select_flags[] as const
Mark Johnston
markj at FreeBSD.org
Fri Jul 30 00:33:23 UTC 2021
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=3e148d60295d08a0dc42efcc58a35f00f8e89d54
commit 3e148d60295d08a0dc42efcc58a35f00f8e89d54
Author: Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-07-23 14:30:32 +0000
Commit: Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-07-30 00:32:59 +0000
select: Define select_flags[] as const
Sponsored by: The FreeBSD Foundation
(cherry picked from commit cae3f9dd01fd1f8d579546b359305e985f8087d8)
---
sys/kern/sys_generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c
index 6fcdee7a088f..09c60611e755 100644
--- a/sys/kern/sys_generic.c
+++ b/sys/kern/sys_generic.c
@@ -1244,7 +1244,7 @@ done:
* The backend always returns POLLHUP/POLLERR if appropriate and we
* return this as a set bit in any set.
*/
-static int select_flags[3] = {
+static const int select_flags[3] = {
POLLRDNORM | POLLHUP | POLLERR,
POLLWRNORM | POLLHUP | POLLERR,
POLLRDBAND | POLLERR
More information about the dev-commits-src-all
mailing list