We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1e4c85 commit 1e7c8f1Copy full SHA for 1e7c8f1
src/shadow.rs
@@ -86,9 +86,6 @@ impl From<&libc::spwd> for Shadow {
86
Shadow {
87
name: unsafe { CStr::from_ptr(spwd.sp_namp).to_string_lossy().into_owned() },
88
password: unsafe { CString::new(CStr::from_ptr(spwd.sp_pwdp).to_bytes()).unwrap() },
89
- // These casts are necessary to convert the C `long int`
90
- // integers (which can be either 32 or 64 bits, depending on
91
- // the CPU architecture) into 64 bit integers.
92
last_change: spwd.sp_lstchg,
93
min: spwd.sp_min,
94
max: spwd.sp_max,
0 commit comments