Fix ioctl type for compiling with clang

This commit is contained in:
Ed Maste 2012-06-28 20:10:43 +00:00
parent beedaee94a
commit f067248f64
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237729
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {