From dfded4478da01f9c5d139b4453537ad29a7dd911 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Sun, 26 Jul 2015 14:46:42 +0000 Subject: [PATCH] Pass unsigned long argument to ioctl(). Eliminates "ioctl sign-extension" warnings. PR: 200896 --- tests/sys/fifo/fifo_misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/sys/fifo/fifo_misc.c b/tests/sys/fifo/fifo_misc.c index 888547e32fc..2c834b127e6 100644 --- a/tests/sys/fifo/fifo_misc.c +++ b/tests/sys/fifo/fifo_misc.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -149,7 +150,7 @@ test_truncate(void) } static int -test_ioctl_setclearflag(int fd, int flag, const char *testname, +test_ioctl_setclearflag(int fd, unsigned long flag, const char *testname, const char *fdname, const char *flagname) { int i;