diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-07-26 14:46:42 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-07-26 14:46:42 +0000 |
commit | d16fdde7e16c8c6a2133a2385b83ce0955e576b1 (patch) | |
tree | b05fc0d594e1c1be2f83feccad2220282b756c9e /tests | |
parent | 58df5d4a5241ae6e8383a6787def0d6182a415e0 (diff) | |
download | FreeBSD-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.c | 3 |
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; |