diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2016-09-21 12:52:43 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2016-09-21 12:52:43 -0400 |
commit | f093225bc49b98f1055b6a9679c4be8ff3ed1bf0 (patch) | |
tree | 66761bc90f8cd570db48b3ef61d25450f57399be /scheduler/auth.c | |
parent | 04964cdd4d058577ab736f98be6a22c67a24a83f (diff) | |
download | cups-f093225bc49b98f1055b6a9679c4be8ff3ed1bf0.tar.gz |
Address some build warnings on Linux (Issue #4881)
Diffstat (limited to 'scheduler/auth.c')
-rw-r--r-- | scheduler/auth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scheduler/auth.c b/scheduler/auth.c index fca183b5c..2af443d51 100644 --- a/scheduler/auth.c +++ b/scheduler/auth.c @@ -1179,14 +1179,14 @@ cupsdCheckGroup( #ifdef HAVE_GETGROUPLIST if (user) { - int ngroups, /* Number of groups */ - groups[2048]; /* Groups that user belongs to */ + int ngroups; /* Number of groups */ + gid_t groups[2048]; /* Groups that user belongs to */ ngroups = (int)(sizeof(groups) / sizeof(groups[0])); - getgrouplist(username, (int)user->pw_gid, groups, &ngroups); + getgrouplist(username, user->pw_gid, groups, &ngroups); for (i = 0; i < ngroups; i ++) - if ((int)group->gr_gid == groups[i]) + if (group->gr_gid == groups[i]) return (1); } #endif /* HAVE_GETGROUPLIST */ |