aboutsummaryrefslogtreecommitdiff
path: root/tools/tools/netmap/bridge.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2012-06-28 20:10:43 +0000
committerEd Maste <emaste@FreeBSD.org>2012-06-28 20:10:43 +0000
commitf067248f64794c961d46766cc5f29ef7f25246dd (patch)
treebe4623c09b764a16f210a382eb061e055f2fd54c /tools/tools/netmap/bridge.c
parentbeedaee94a08c06e19fc15cf20280b72ef61b74f (diff)
downloadsrc-f067248f64794c961d46766cc5f29ef7f25246dd.tar.gz
src-f067248f64794c961d46766cc5f29ef7f25246dd.zip
Fix ioctl type for compiling with clang
Notes
Notes: svn path=/head/; revision=237729
Diffstat (limited to 'tools/tools/netmap/bridge.c')
-rw-r--r--tools/tools/netmap/bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tools/netmap/bridge.c b/tools/tools/netmap/bridge.c
index 6e20b634cb27..0e9e44216420 100644
--- a/tools/tools/netmap/bridge.c
+++ b/tools/tools/netmap/bridge.c
@@ -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) {