From bfc4fe401259085f9e17c75a7ec171be0bc5f35f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 20 Dec 2010 16:43:39 +0100 Subject: s3: Remove unused "retry" from cli_start_connection Autobuild-User: Volker Lendecke Autobuild-Date: Mon Dec 20 17:58:33 CET 2010 on sn-devel-104 --- source3/libsmb/cliconnect.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'source3/libsmb/cliconnect.c') diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 68a953c196..25df2b2b4e 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2498,15 +2498,12 @@ NTSTATUS cli_connect(struct cli_state *cli, @param dest_host The netbios name of the remote host @param dest_ss (optional) The the destination IP, NULL for name based lookup @param port (optional) The destination port (0 for default) - @param retry bool. Did this connection fail with a retryable error ? - */ NTSTATUS cli_start_connection(struct cli_state **output_cli, const char *my_name, const char *dest_host, struct sockaddr_storage *dest_ss, int port, - int signing_state, int flags, - bool *retry) + int signing_state, int flags) { NTSTATUS nt_status; struct nmb_name calling; @@ -2514,9 +2511,6 @@ NTSTATUS cli_start_connection(struct cli_state **output_cli, struct cli_state *cli; struct sockaddr_storage ss; - if (retry) - *retry = False; - if (!my_name) my_name = global_myname(); @@ -2550,9 +2544,6 @@ again: return nt_status; } - if (retry) - *retry = True; - if (!cli_session_request(cli, &calling, &called)) { char *p; DEBUG(1,("session request to %s failed (%s)\n", @@ -2627,7 +2618,7 @@ NTSTATUS cli_full_connection(struct cli_state **output_cli, nt_status = cli_start_connection(&cli, my_name, dest_host, dest_ss, port, signing_state, - flags, NULL); + flags); if (!NT_STATUS_IS_OK(nt_status)) { return nt_status; -- cgit