Skip to content

Commit

Permalink
fix build on arm (#47876)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarneges authored and sima-fastly committed Mar 14, 2024
1 parent 12d1168 commit cf1939f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fn get_user_uid(name: &str) -> Result<libc::gid_t, io::Error> {
if libc::getpwnam_r(
name.as_ptr(),
pwd.as_mut_ptr(),
buf.as_mut_ptr() as *mut i8,
buf.as_mut_ptr() as *mut libc::c_char,
buf.len(),
&mut passwd,
) != 0
Expand All @@ -197,7 +197,7 @@ fn get_group_gid(name: &str) -> Result<libc::gid_t, io::Error> {
if libc::getgrnam_r(
name.as_ptr(),
grp.as_mut_ptr(),
buf.as_mut_ptr() as *mut i8,
buf.as_mut_ptr() as *mut libc::c_char,
buf.len(),
&mut group,
) != 0
Expand Down

0 comments on commit cf1939f

Please sign in to comment.