Skip to content

Commit

Permalink
Address compiler warnings about type mismatch, seen on Travis. This p…
Browse files Browse the repository at this point in the history
…articular

case is a platform-dependent one; let's assume that gid_t is the future,
rather than int, for GIDs.
  • Loading branch information
Castaglia committed Dec 27, 2016
1 parent 85bf47a commit b483677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mod_auth_unix.c
Expand Up @@ -1162,7 +1162,7 @@ static int get_groups_by_getgrouplist(const char *user, gid_t primary_gid,
"using getgrouplist(3) to look up group membership");

memset(group_ids, 0, sizeof(group_ids));
if (getgrouplist(user, primary_gid, (int *) group_ids, &ngroups) < 0) {
if (getgrouplist(user, primary_gid, group_ids, &ngroups) < 0) {
int xerrno = errno;

pr_log_pri(PR_LOG_WARNING, "getgrouplist(3) error: %s", strerror(xerrno));
Expand Down

0 comments on commit b483677

Please sign in to comment.