mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Fix ioctl type for compiling with clang
This commit is contained in:
parent
beedaee94a
commit
f067248f64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237729
@ -79,7 +79,7 @@ sigint_h(__unused int sig)
|
||||
|
||||
|
||||
static int
|
||||
do_ioctl(struct my_ring *me, int what)
|
||||
do_ioctl(struct my_ring *me, unsigned long what)
|
||||
{
|
||||
struct ifreq ifr;
|
||||
int error;
|
||||
@ -98,7 +98,7 @@ do_ioctl(struct my_ring *me, int what)
|
||||
}
|
||||
error = ioctl(me->fd, what, &ifr);
|
||||
if (error) {
|
||||
D("ioctl error %d", what);
|
||||
D("ioctl error 0x%lx", what);
|
||||
return error;
|
||||
}
|
||||
switch (what) {
|
||||
|
@ -201,7 +201,7 @@ struct my_ring {
|
||||
|
||||
|
||||
static int
|
||||
do_ioctl(struct my_ring *me, int what)
|
||||
do_ioctl(struct my_ring *me, unsigned long what)
|
||||
{
|
||||
struct ifreq ifr;
|
||||
int error;
|
||||
@ -221,7 +221,7 @@ do_ioctl(struct my_ring *me, int what)
|
||||
}
|
||||
error = ioctl(me->fd, what, &ifr);
|
||||
if (error) {
|
||||
D("ioctl 0x%x error %d", what, error);
|
||||
D("ioctl 0x%lx error %d", what, error);
|
||||
return error;
|
||||
}
|
||||
switch (what) {
|
||||
|
Loading…
Reference in New Issue
Block a user