Date: Fri, 30 Jul 2021 00:33:22 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 3e148d60295d - stable/13 - select: Define select_flags[] as const Message-ID: <202107300033.16U0XMnA043773@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=3e148d60295d08a0dc42efcc58a35f00f8e89d54 commit 3e148d60295d08a0dc42efcc58a35f00f8e89d54 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-07-23 14:30:32 +0000 Commit: Mark Johnston <markj@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107300033.16U0XMnA043773>