Pass unsigned long argument to ioctl().

Eliminates "ioctl sign-extension" warnings.

PR:		200896
This commit is contained in:
Craig Rodrigues 2015-07-26 14:46:42 +00:00
parent c048a83f51
commit dfded4478d

View File

@ -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;