summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-07-26 14:46:42 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-07-26 14:46:42 +0000
commitd16fdde7e16c8c6a2133a2385b83ce0955e576b1 (patch)
treeb05fc0d594e1c1be2f83feccad2220282b756c9e /tests
parent58df5d4a5241ae6e8383a6787def0d6182a415e0 (diff)
downloadFreeBSD-src-d16fdde7e16c8c6a2133a2385b83ce0955e576b1.zip
FreeBSD-src-d16fdde7e16c8c6a2133a2385b83ce0955e576b1.tar.gz
Pass unsigned long argument to ioctl().
Eliminates "ioctl sign-extension" warnings. PR: 200896
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/fifo/fifo_misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sys/fifo/fifo_misc.c b/tests/sys/fifo/fifo_misc.c
index 888547e..2c834b1 100644
--- a/tests/sys/fifo/fifo_misc.c
+++ b/tests/sys/fifo/fifo_misc.c
@@ -30,6 +30,7 @@
#include <sys/types.h>
#include <sys/event.h>
#include <sys/filio.h>
+#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/time.h>
@@ -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;
OpenPOWER on IntegriCloud