Fix warnings

pull/1/head
Alessandro Decina 4 years ago
parent fdc4dad5ff
commit a5e19fc4ac

@ -28,6 +28,7 @@ macro_rules! unsafe_impl_pod {
unsafe_impl_pod!(i8, u8, i16, u16, i32, u32, i64, u64);
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone, Debug)]
pub(crate) struct bpf_map_def {

@ -125,7 +125,7 @@ struct Request {
struct NetlinkSocket {
sock: RawFd,
nl_pid: u32,
_nl_pid: u32,
}
impl NetlinkSocket {
@ -160,7 +160,7 @@ impl NetlinkSocket {
Ok(NetlinkSocket {
sock,
nl_pid: addr.nl_pid,
_nl_pid: addr.nl_pid,
})
}

Loading…
Cancel
Save