diff --git a/src/phy/sys/mod.rs b/src/phy/sys/mod.rs index 84de75219..a96614a1e 100644 --- a/src/phy/sys/mod.rs +++ b/src/phy/sys/mod.rs @@ -75,7 +75,7 @@ fn ifreq_for(name: &str) -> ifreq { fn ifreq_ioctl(lower: libc::c_int, ifreq: &mut ifreq, cmd: libc::c_ulong) -> io::Result { unsafe { - let res = libc::ioctl(lower, cmd, ifreq as *mut ifreq); + let res = libc::ioctl(lower, cmd as _, ifreq as *mut ifreq); if res == -1 { return Err(io::Error::last_os_error()) } }