summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-04 16:56:43 +0200
committerJeremy Allison <jra@samba.org>2013-04-11 14:43:06 -0700
commit82b3069c30f01c45e11f25001a990dab9fef82f6 (patch)
treeccecd59cc70980fe66f79f912d7fa9079d433c85
parent48053b77f90d9d158b67c1c67046c4b626530324 (diff)
downloadsamba-82b3069c30f01c45e11f25001a990dab9fef82f6.tar.gz
samba-82b3069c30f01c45e11f25001a990dab9fef82f6.tar.bz2
samba-82b3069c30f01c45e11f25001a990dab9fef82f6.zip
libsmbclient: Remove unused cli_connect_sock
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/libsmb/cliconnect.c32
1 files changed, 0 insertions, 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;