Skip to content

Commit

Permalink
review: specify alignment attribute for fanotify_event_metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Mar 19, 2020
1 parent 42ac577 commit bdd80b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ s! {
pub len: u32
}

#[repr(align(8))]
pub struct fanotify_event_metadata {
pub event_len: __u32,
pub vers: __u8,
Expand Down

0 comments on commit bdd80b6

Please sign in to comment.