summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-24 11:11:45 +0200
committerVolker Lendecke <vl@samba.org>2010-04-24 11:12:19 +0200
commitdbb7db6c2532bb18674c6acea27688f22c41efb8 (patch)
tree454dbbb197967d502ff46719699efdb66bf7f9e7 /source3
parent678a3c4e6dd68f3b2f81a3ad381be017e15de44d (diff)
downloadsamba-dbb7db6c2532bb18674c6acea27688f22c41efb8.tar.gz
samba-dbb7db6c2532bb18674c6acea27688f22c41efb8.tar.bz2
samba-dbb7db6c2532bb18674c6acea27688f22c41efb8.zip
s3: sendto_domain() is lo longer used
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_dual.c28
-rw-r--r--source3/winbindd/winbindd_proto.h2
2 files changed, 0 insertions, 30 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c
index eb9ace23d6..073749eb7e 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -428,34 +428,6 @@ static void async_domain_request_done(struct tevent_req *req)
state->continuation(state->private_data_data, true);
}
-static void recvfrom_child(void *private_data_data, bool success)
-{
- struct winbindd_cli_state *state =
- talloc_get_type_abort(private_data_data, struct winbindd_cli_state);
- enum winbindd_result result = state->response->result;
-
- /* This is an optimization: The child has written directly to the
- * response buffer. The request itself is still in pending state,
- * state that in the result code. */
-
- state->response->result = WINBINDD_PENDING;
-
- if ((!success) || (result != WINBINDD_OK)) {
- request_error(state);
- return;
- }
-
- request_ok(state);
-}
-
-void sendto_domain(struct winbindd_cli_state *state,
- struct winbindd_domain *domain)
-{
- async_domain_request(state->mem_ctx, domain,
- state->request, state->response,
- recvfrom_child, state);
-}
-
static void child_process_request(struct winbindd_child *child,
struct winbindd_cli_state *state)
{
diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h
index 2bf33cbc1e..981b2f644f 100644
--- a/source3/winbindd/winbindd_proto.h
+++ b/source3/winbindd/winbindd_proto.h
@@ -276,8 +276,6 @@ void async_domain_request(TALLOC_CTX *mem_ctx,
struct winbindd_response *response,
void (*continuation)(void *private_data_data, bool success),
void *private_data_data);
-void sendto_domain(struct winbindd_cli_state *state,
- struct winbindd_domain *domain);
void setup_child(struct winbindd_domain *domain, struct winbindd_child *child,
const struct winbindd_child_dispatch_table *table,
const char *logprefix,