From d3c0c2b892eebb938616b9a13d9741ad9093db42 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Fri, 2 Jun 2017 19:17:15 -0700 Subject: [PATCH] Use repr(C) for structs in data.rs --- src/data.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data.rs b/src/data.rs index 21d8532..cd410ae 100644 --- a/src/data.rs +++ b/src/data.rs @@ -26,7 +26,7 @@ impl DerefMut for Event { } #[derive(Copy, Clone, Debug, Default)] -#[repr(packed)] +#[repr(C)] pub struct Packet { pub id: u64, pub pid: usize, @@ -56,7 +56,7 @@ impl DerefMut for Packet { } #[derive(Copy, Clone, Debug, Default)] -#[repr(packed)] +#[repr(C)] pub struct Stat { pub st_dev: u64, pub st_ino: u64, @@ -93,7 +93,7 @@ impl DerefMut for Stat { } #[derive(Copy, Clone, Debug, Default)] -#[repr(packed)] +#[repr(C)] pub struct StatVfs { pub f_bsize: u32, pub f_blocks: u64, @@ -120,7 +120,7 @@ impl DerefMut for StatVfs { } #[derive(Copy, Clone, Debug, Default)] -#[repr(packed)] +#[repr(C)] pub struct TimeSpec { pub tv_sec: i64, pub tv_nsec: i32,