From ce60854934312c9ebb75178f44faf9369febf6ad Mon Sep 17 00:00:00 2001 From: Mikhail Trishchenkov Date: Mon, 20 Mar 2023 21:47:24 +0700 Subject: [PATCH] Don't leak libc types --- aya/src/programs/xdp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/programs/xdp.rs b/aya/src/programs/xdp.rs index f88b0e17..63f00987 100644 --- a/aya/src/programs/xdp.rs +++ b/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 { let prog_fd = self.data.fd_or_err()?;