The branch stable/13 has been updated by markj:

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

commit 3e148d60295d08a0dc42efcc58a35f00f8e89d54
Author:     Mark Johnston <[email protected]>
AuthorDate: 2021-07-23 14:30:32 +0000
Commit:     Mark Johnston <[email protected]>
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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to