s4-dns: Remove sync dns_process
authorVolker Lendecke <vl@samba.org>
Tue, 29 May 2012 08:03:13 +0000 (10:03 +0200)
committerKai Blin <kai@samba.org>
Tue, 29 May 2012 22:37:59 +0000 (00:37 +0200)
Signed-off-by: Kai Blin <kai@samba.org>
source4/dns_server/dns_server.c

index caf347d3b870d4db5107d6b0047141b687822348..34e4fe36ba52e6e087ad4af735b8a59a67971c1e 100644 (file)
@@ -234,30 +234,6 @@ drop:
        return WERR_OK;
 }
 
-static WERROR dns_process(struct dns_server *dns, TALLOC_CTX *mem_ctx,
-                         DATA_BLOB *in, DATA_BLOB *out)
-{
-       struct tevent_context *ev;
-       struct tevent_req *req;
-       WERROR err = WERR_NOMEM;
-
-       ev = tevent_context_init(talloc_tos());
-       if (ev == NULL) {
-               goto fail;
-       }
-       req = dns_process_send(ev, ev, dns, in);
-       if (req == NULL) {
-               goto fail;
-       }
-       if (!tevent_req_poll_werror(req, ev, &err)) {
-               goto fail;
-       }
-       err = dns_process_recv(req, mem_ctx, out);
-fail:
-       TALLOC_FREE(ev);
-       return err;
-}
-
 struct dns_tcp_call {
        struct dns_tcp_connection *dns_conn;
        DATA_BLOB in;