r16350: Fix the build.
authorGünther Deschner <gd@samba.org>
Mon, 19 Jun 2006 16:25:19 +0000 (16:25 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:37 +0000 (11:17 -0500)
GUenther
(This used to be commit 3203ce3b49e6f21ed690e9d7393e98419de54c27)

source3/lib/util_sid.c
source3/passdb/pdb_ldap.c

index 307f3e3415d05081273c72d8e89cc8512a7a56fb..09fe30f81bbd0a2f1119135357e7cdc0dcf34f47 100644 (file)
@@ -647,6 +647,25 @@ void del_sid_from_array(const DOM_SID *sid, DOM_SID **sids, size_t *num)
        return;
 }
 
+void add_rid_to_array_unique(TALLOC_CTX *mem_ctx,
+                                   uint32 rid, uint32 **pp_rids, size_t *p_num)
+{
+       size_t i;
+
+       for (i=0; i<*p_num; i++) {
+               if ((*pp_rids)[i] == rid)
+                       return;
+       }
+       
+       *pp_rids = TALLOC_REALLOC_ARRAY(mem_ctx, *pp_rids, uint32, *p_num+1);
+
+       if (*pp_rids == NULL)
+               return;
+
+       (*pp_rids)[*p_num] = rid;
+       *p_num += 1;
+}
+
 BOOL is_null_sid(const DOM_SID *sid)
 {
        static const DOM_SID null_sid = {0};
index 3fd4e6748aec6f058b300c059793cd7d28152754..2a824c137f9bc6cc878032e2117cc682a451f708 100644 (file)
@@ -2274,25 +2274,6 @@ static NTSTATUS ldapsam_getgrnam(struct pdb_methods *methods, GROUP_MAP *map,
        return ldapsam_getgroup(methods, filter, map);
 }
 
-static void add_rid_to_array_unique(TALLOC_CTX *mem_ctx,
-                                   uint32 rid, uint32 **pp_rids, size_t *p_num)
-{
-       size_t i;
-
-       for (i=0; i<*p_num; i++) {
-               if ((*pp_rids)[i] == rid)
-                       return;
-       }
-       
-       *pp_rids = TALLOC_REALLOC_ARRAY(mem_ctx, *pp_rids, uint32, *p_num+1);
-
-       if (*pp_rids == NULL)
-               return;
-
-       (*pp_rids)[*p_num] = rid;
-       *p_num += 1;
-}
-
 static BOOL ldapsam_extract_rid_from_entry(LDAP *ldap_struct,
                                           LDAPMessage *entry,
                                           const DOM_SID *domain_sid,