git: 4ea7a920de22 - main - inotify tests: Use unsigned integers for event masks
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Jul 2025 20:16:50 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=4ea7a920de22d283dd801a38588f35f56cdddcb6
commit 4ea7a920de22d283dd801a38588f35f56cdddcb6
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-07-07 19:14:41 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-07-07 20:16:31 +0000
inotify tests: Use unsigned integers for event masks
Reported by: gcc
Fixes: 739fc14938d5 ("tests: Add some regression tests for inotify")
---
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 ed7cef5d148c..713db55afc22 100644
--- a/tests/sys/kern/inotify_test.c
+++ b/tests/sys/kern/inotify_test.c
@@ -79,7 +79,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;
@@ -118,7 +119,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);
}