basic/user-util: modernize getgroups_alloc() a bit
- Make sure ret is initialized if we return >= 0 - Reduce variable scope
This commit is contained in:
@@ -64,7 +64,7 @@ int in_gid(gid_t gid);
|
||||
int in_group(const char *name);
|
||||
|
||||
int merge_gid_lists(const gid_t *list1, size_t size1, const gid_t *list2, size_t size2, gid_t **result);
|
||||
int getgroups_alloc(gid_t** gids);
|
||||
int getgroups_alloc(gid_t **ret);
|
||||
|
||||
int get_home_dir(char **ret);
|
||||
int get_shell(char **ret);
|
||||
|
||||
Reference in New Issue
Block a user