summaryrefslogtreecommitdiff
path: root/modules/mgetgroups
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-12-04 14:37:32 -0700
committerEric Blake <ebb9@byu.net>2009-12-04 18:02:51 -0700
commit3425a9dd708056d5e12483dd917af0c035b8b5bc (patch)
tree7d93a986a40c8c815841bb437ea6046223b37667 /modules/mgetgroups
parentc5588be343f580be8e87d99e043dcdf3d7606759 (diff)
downloadgnulib-3425a9dd708056d5e12483dd917af0c035b8b5bc.tar.gz
mgetgroups: avoid argument promotion issues with -1
On platforms where gid_t is equivalent to uint16_t, argument promotion states that -1 != (gid_t) -1. * lib/mgetgroups.c (mgetgroups): A cast is required when checking for invalid gid_t. * tests/test-chown.h (getegid, test_chown): Likewise. * tests/test-lchown.h (getegid, test_lchown): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/mgetgroups')
0 files changed, 0 insertions, 0 deletions