From b26b874829775ef2338a73c988dea207e7dec566 Mon Sep 17 00:00:00 2001 From: Arcterus Date: Tue, 17 Jun 2014 20:51:59 -0700 Subject: [PATCH] common: remove extra cast --- common/c_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/c_types.rs b/common/c_types.rs index 53ddc0af9..e1015c16f 100644 --- a/common/c_types.rs +++ b/common/c_types.rs @@ -155,7 +155,7 @@ pub fn get_group_list(name: *c_char, gid: gid_t) -> Vec { let mut ngroups: c_int = 32; let mut groups: Vec = 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 {