winbind: make choose_domain_child() static
authorStefan Metzmacher <metze@samba.org>
Tue, 20 Feb 2018 13:43:38 +0000 (14:43 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 23 Feb 2018 03:09:18 +0000 (04:09 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13292

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/winbindd/winbindd_dual.c
source3/winbindd/winbindd_proto.h

index 1dd8b6f42e9d6a247d97e86620ba6c2cb8458969..21fe3c29fc1cf4e1fe35e845d44d7034caf5c12a 100644 (file)
@@ -292,7 +292,7 @@ static void wb_child_request_cleanup(struct tevent_req *req,
        DLIST_REMOVE(winbindd_children, state->child);
 }
 
-struct winbindd_child *choose_domain_child(struct winbindd_domain *domain)
+static struct winbindd_child *choose_domain_child(struct winbindd_domain *domain)
 {
        struct winbindd_child *shortest = &domain->children[0];
        struct winbindd_child *current;
index 5d31490ff162d0f69c8da89505f41266a5ea7fdb..704a8dd29244d294812630e4be93d6df20f2e7b3 100644 (file)
@@ -272,7 +272,6 @@ void setup_domain_child(struct winbindd_domain *domain);
 /* The following definitions come from winbindd/winbindd_dual.c  */
 
 struct dcerpc_binding_handle *dom_child_handle(struct winbindd_domain *domain);
-struct winbindd_child *choose_domain_child(struct winbindd_domain *domain);
 
 struct tevent_req *wb_child_request_send(TALLOC_CTX *mem_ctx,
                                         struct tevent_context *ev,