0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
termux-packages/packages/below/below-ethtool-src-reader.rs.patch
2024-04-26 10:34:01 +08:00

12 lines
458 B
Diff

--- a/below/ethtool/src/reader.rs
+++ b/below/ethtool/src/reader.rs
@@ -33,7 +33,7 @@ fn ioctl(
ifr_ifru: libc::__c_anonymous_ifr_ifru { ifru_data: data },
};
- let exit_code = unsafe { libc::ioctl(fd.as_raw_fd(), nix::libc::SIOCETHTOOL, &ifr) };
+ let exit_code = unsafe { libc::ioctl(fd.as_raw_fd(), nix::libc::SIOCETHTOOL.try_into().unwrap(), &ifr) };
if exit_code != 0 {
return Err(Errno::from_i32(exit_code));
}