summaryrefslogtreecommitdiff
path: root/lib/mgetgroups.h
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-04-27 16:23:45 -0600
committerEric Blake <eblake@redhat.com>2011-04-28 14:22:07 -0600
commit83b1d6414af952ac03022bf956d84a21f6132d0e (patch)
tree3590b298d4b53df0762919be2875f5af737f8068 /lib/mgetgroups.h
parentbf18c9b4d8ab7f7e8db272594b5d2c8a8dd06b64 (diff)
downloadgnulib-83b1d6414af952ac03022bf956d84a21f6132d0e.tar.gz
hash, mgetgroups: drop xalloc dependency
Rely on the new xalloc-oversized module to avoid requiring xalloc-die for functions documented as returning NULL on potential allocation overflow. * lib/hash.c (includes): Adjust includes. * lib/mgetgroups.c (includes): Likewise. (xgetgroups): Move... * lib/xgetgroups.c: ...to new file. * modules/xgetgroups: New file, split from... * modules/mgetgroups: ...here. (Depends-on): Add xalloc-oversized. * modules/hash (Depends-on): Likewise. * modules/hash-tests (Depends-on): Drop xalloc. (test_hash_LDADD): Drop unused library. * tests/test-hash.c (main): Break xalloc dependency. (includes): Drop unused include. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'lib/mgetgroups.h')
-rw-r--r--lib/mgetgroups.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mgetgroups.h b/lib/mgetgroups.h
index a1fd040e73..7a572bc2f7 100644
--- a/lib/mgetgroups.h
+++ b/lib/mgetgroups.h
@@ -17,4 +17,6 @@
#include <sys/types.h>
int mgetgroups (const char *username, gid_t gid, gid_t **groups);
+#if GNULIB_XGETGROUPS
int xgetgroups (const char *username, gid_t gid, gid_t **groups);
+#endif