Don't leak libc types

pull/548/head
Mikhail Trishchenkov 2 years ago
parent 896e3ab313
commit ce60854934

@ -120,7 +120,7 @@ impl Xdp {
/// kernels. /// kernels.
pub fn attach_to_if_index( pub fn attach_to_if_index(
&mut self, &mut self,
if_index: libc::c_uint, if_index: u32,
flags: XdpFlags, flags: XdpFlags,
) -> Result<XdpLinkId, ProgramError> { ) -> Result<XdpLinkId, ProgramError> {
let prog_fd = self.data.fd_or_err()?; let prog_fd = self.data.fd_or_err()?;

Loading…
Cancel
Save