From 82b3069c30f01c45e11f25001a990dab9fef82f6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 4 Apr 2013 16:56:43 +0200 Subject: libsmbclient: Remove unused cli_connect_sock Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/libsmb/cliconnect.c | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 11b3ee6efb..ce4b8222e6 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2861,38 +2861,6 @@ static NTSTATUS cli_connect_sock_recv(struct tevent_req *req, return NT_STATUS_OK; } -static NTSTATUS cli_connect_sock(const char *host, int name_type, - const struct sockaddr_storage *pss, - const char *myname, uint16_t port, - int sec_timeout, int *pfd, uint16_t *pport) -{ - struct tevent_context *ev; - struct tevent_req *req; - NTSTATUS status = NT_STATUS_NO_MEMORY; - - ev = samba_tevent_context_init(talloc_tos()); - if (ev == NULL) { - goto fail; - } - req = cli_connect_sock_send(ev, ev, host, name_type, pss, myname, - port); - if (req == NULL) { - goto fail; - } - if ((sec_timeout != 0) && - !tevent_req_set_endtime( - req, ev, timeval_current_ofs(sec_timeout, 0))) { - goto fail; - } - if (!tevent_req_poll_ntstatus(req, ev, &status)) { - goto fail; - } - status = cli_connect_sock_recv(req, pfd, pport); -fail: - TALLOC_FREE(ev); - return status; -} - struct cli_connect_nb_state { const char *desthost; int signing_state; -- cgit