SOLARIS: Declare gid_t arrays const

The gid_t arrays we get from crgetgroups are const, so declare our
local gid_t array const, as well, to avoid a compiler warning.

Change-Id: Id8a375bb17b5bbd28e81460b6cb68711802850c3
Reviewed-on: https://gerrit.openafs.org/12701
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <marciobritobarbosa@yahoo.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
This commit is contained in:
Andrew Deason 2017-08-09 20:06:24 -05:00
parent 6170dd374f
commit 0468595658

View File

@ -201,7 +201,7 @@ static int
afs_getgroups(struct cred *cred, gid_t * gidset)
{
int ngrps, savengrps;
gid_t *gp;
const gid_t *gp;
AFS_STATCNT(afs_getgroups);
@ -260,7 +260,7 @@ afs_setgroups(struct cred **cred, int ngroups, gid_t * gidset,
#ifdef AFS_PAG_ONEGROUP_ENV
afs_int32
osi_get_group_pag(struct cred *cred) {
gid_t *gidset;
const gid_t *gidset;
int ngroups;
int i;