mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
common: remove extra cast
This commit is contained in:
parent
cf2d7a3bb7
commit
b26b874829
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ pub fn get_group_list(name: *c_char, gid: gid_t) -> Vec<gid_t> {
|
|||
let mut ngroups: c_int = 32;
|
||||
let mut groups: Vec<gid_t> = Vec::with_capacity(ngroups as uint);
|
||||
|
||||
if unsafe { getgrouplist(name, gid, groups.as_mut_ptr(), &mut ngroups as *mut c_int) } == -1 {
|
||||
if unsafe { getgrouplist(name, gid, groups.as_mut_ptr(), &mut ngroups) } == -1 {
|
||||
groups.reserve(ngroups as uint);
|
||||
unsafe { getgrouplist(name, gid, groups.as_mut_ptr(), &mut ngroups); }
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue