1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

common: remove extra cast

This commit is contained in:
Arcterus 2014-06-17 20:51:59 -07:00
parent cf2d7a3bb7
commit b26b874829

View file

@ -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 ngroups: c_int = 32;
let mut groups: Vec<gid_t> = Vec::with_capacity(ngroups as uint); 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); groups.reserve(ngroups as uint);
unsafe { getgrouplist(name, gid, groups.as_mut_ptr(), &mut ngroups); } unsafe { getgrouplist(name, gid, groups.as_mut_ptr(), &mut ngroups); }
} else { } else {