simplify mgetgroups() and avoid -Wsign-compare warnings
authorPádraig Brady <P@draigBrady.com>
Wed, 14 Jan 2009 19:17:39 +0000 (19:17 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 16 Jan 2009 11:06:09 +0000 (11:06 +0000)
commit46d6df933ec6171fcfa0220dfb8f18f68293797b
tree77388a86324cecd5f76700dbec57803a7bffa847
parent7b1967351c80c56abc5b8c6c4a66ffba80050c5c
simplify mgetgroups() and avoid -Wsign-compare warnings

* gl/lib/mgetgroups.c: Avoid -Wsign-compare warning by using unsigned
types for the parameters of the new function realloc_groupbuf().
mgetgroups() was refactored to use this function rather than
explicitly allocating and copying from automatic storage itself.
* src/group-list.c: Use int rather than size_t as variable is
used in signed comparisons.
* src/id.c: ditto.
gl/lib/mgetgroups.c
src/group-list.c
src/id.c