mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Pass unsigned long argument to ioctl().
Eliminates "ioctl sign-extension" warnings. PR: 200896
This commit is contained in:
parent
c048a83f51
commit
dfded4478d
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue