Skip to content

Commit

Permalink
Merge pull request #243 from tatref/shm-size
Browse files Browse the repository at this point in the history
fix shm size type
  • Loading branch information
eminence committed Feb 12, 2023
2 parents 9b6f434 + 78df98c commit da17d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sysvipc_shm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Shm {
/// Access permissions, as octal
pub perms: u16,
/// Size in bytes
pub size: u32,
pub size: u64,
/// Creator PID
pub cpid: i32,
/// Last operator PID
Expand Down Expand Up @@ -70,7 +70,7 @@ impl Shm {
let key = expect!(i32::from_str(expect!(s.next())));
let shmid = expect!(u64::from_str(expect!(s.next())));
let perms = expect!(u16::from_str(expect!(s.next())));
let size = expect!(u32::from_str(expect!(s.next())));
let size = expect!(u64::from_str(expect!(s.next())));
let cpid = expect!(i32::from_str(expect!(s.next())));
let lpid = expect!(i32::from_str(expect!(s.next())));
let nattch = expect!(u32::from_str(expect!(s.next())));
Expand Down

0 comments on commit da17d8e

Please sign in to comment.