Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 2021 14:50:00 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: cae3f9dd01fd - main - select: Define select_flags[] as const
Message-ID:  <202107231450.16NEo0kS015784@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=cae3f9dd01fd1f8d579546b359305e985f8087d8

commit cae3f9dd01fd1f8d579546b359305e985f8087d8
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-07-23 14:30:32 +0000
Commit:     Mark Johnston <markj@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107231450.16NEo0kS015784>