git: cae3f9dd01fd - main - select: Define select_flags[] as const
Mark Johnston
markj at FreeBSD.org
Fri Jul 23 14:50:01 UTC 2021
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=cae3f9dd01fd1f8d579546b359305e985f8087d8
commit cae3f9dd01fd1f8d579546b359305e985f8087d8
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-23 14:47:13 +0000
select: Define select_flags[] as const
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
---
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 c89a643cfcf9..f86d494400e2 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