1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 23:17:46 +00:00

Fix arm build

Fixes #719
This commit is contained in:
Michael Gehring 2015-12-13 09:21:15 +01:00 committed by Roy Ivy III
parent bde309a29f
commit ce733b38a9

View file

@ -128,7 +128,7 @@ pub fn get_pw_from_args(free: &Vec<String>) -> Option<c_passwd> {
} else {
let pw_pointer = unsafe {
let cstr = CString::new(username).unwrap();
getpwnam(cstr.as_bytes_with_nul().as_ptr() as *const i8)
getpwnam(cstr.as_bytes_with_nul().as_ptr() as *const _)
};
if !pw_pointer.is_null() {
Some(unsafe { read(pw_pointer) })