Explorar o código

Don't leak libc types

Mikhail Trishchenkov %!s(int64=2) %!d(string=hai) anos
pai
achega
ce60854934
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      aya/src/programs/xdp.rs

+ 1 - 1
aya/src/programs/xdp.rs

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