git: f00be56a9ce9 - stable/14 - inotify tests: Use unsigned integers for event masks

Mark Johnston <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a7353d0.441eb.5bad848__6152.62518856383$1785943153$gmane$org@gitrepo.freebsd.org>
The branch stable/14 has been updated by markj:

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

commit f00be56a9ce9290b2df35d53dc249e301705deb3
Author:     Mark Johnston <[email protected]>
AuthorDate: 2025-07-07 19:14:41 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2026-08-05 15:15:15 +0000

    inotify tests: Use unsigned integers for event masks
    
    Reported by:    gcc
    Fixes:          739fc14938d5 ("tests: Add some regression tests for inotify")
    
    (cherry picked from commit 4ea7a920de22d283dd801a38588f35f56cdddcb6)
---
 tests/sys/kern/inotify_test.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/sys/kern/inotify_test.c b/tests/sys/kern/inotify_test.c
index 93f1b17c4430..f3c8427b100f 100644
--- a/tests/sys/kern/inotify_test.c
+++ b/tests/sys/kern/inotify_test.c
@@ -78,7 +78,8 @@ close_inotify(int fd)
 }
 
 static uint32_t
-consume_event_cookie(int ifd, int wd, int event, int flags, const char *name)
+consume_event_cookie(int ifd, int wd, unsigned int event, unsigned int flags,
+    const char *name)
 {
 	struct inotify_event *ev;
 	size_t evsz, namelen;
@@ -117,7 +118,8 @@ consume_event_cookie(int ifd, int wd, int event, int flags, const char *name)
  * matches the expected values.
  */
 static void
-consume_event(int ifd, int wd, int event, int flags, const char *name)
+consume_event(int ifd, int wd, unsigned int event, unsigned int flags,
+    const char *name)
 {
 	(void)consume_event_cookie(ifd, wd, event, flags, name);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.