summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-28 16:08:04 +0200
committerGünther Deschner <gd@samba.org>2009-05-29 13:49:58 +0200
commitbff54b90c353920ba058cc53a6cc0464f0939424 (patch)
treec23115864d639816bb09b0a32c890c9ada77cfe9 /source3/passdb
parent12496ea5aba3a53691ca74f12192f489d7831592 (diff)
downloadsamba-bff54b90c353920ba058cc53a6cc0464f0939424.tar.gz
samba-bff54b90c353920ba058cc53a6cc0464f0939424.tar.bz2
samba-bff54b90c353920ba058cc53a6cc0464f0939424.zip
util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.
Guenther
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_interface.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index b4e1bd436c..b69e41590f 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -1330,26 +1330,6 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods,
return ret;
}
-static bool add_uid_to_array_unique(TALLOC_CTX *mem_ctx,
- uid_t uid, uid_t **pp_uids, size_t *p_num)
-{
- size_t i;
-
- for (i=0; i<*p_num; i++) {
- if ((*pp_uids)[i] == uid)
- return True;
- }
-
- *pp_uids = TALLOC_REALLOC_ARRAY(mem_ctx, *pp_uids, uid_t, *p_num+1);
-
- if (*pp_uids == NULL)
- return False;
-
- (*pp_uids)[*p_num] = uid;
- *p_num += 1;
- return True;
-}
-
static bool get_memberuids(TALLOC_CTX *mem_ctx, gid_t gid, uid_t **pp_uids, size_t *p_num)
{
struct group *grp;