summaryrefslogtreecommitdiff
path: root/scheduler/auth.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2016-09-21 12:52:43 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2016-09-21 12:52:43 -0400
commitf093225bc49b98f1055b6a9679c4be8ff3ed1bf0 (patch)
tree66761bc90f8cd570db48b3ef61d25450f57399be /scheduler/auth.c
parent04964cdd4d058577ab736f98be6a22c67a24a83f (diff)
downloadcups-f093225bc49b98f1055b6a9679c4be8ff3ed1bf0.tar.gz
Address some build warnings on Linux (Issue #4881)
Diffstat (limited to 'scheduler/auth.c')
-rw-r--r--scheduler/auth.c8
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 */