summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorLuk Claes <luk@debian.org>2012-05-20 16:26:25 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-28 14:49:49 +0200
commit82895ab22fb19fabe43ec29365dbe33da0b917f2 (patch)
tree9b0a4cb7953d7df301f521edf7d885c52968be4d /source3/libsmb
parent1ff8c404a64ea583b8265441edfb78c3613134dd (diff)
downloadsamba-82895ab22fb19fabe43ec29365dbe33da0b917f2.tar.gz
samba-82895ab22fb19fabe43ec29365dbe33da0b917f2.tar.bz2
samba-82895ab22fb19fabe43ec29365dbe33da0b917f2.zip
s3:libsmb: get rid of cli_state_disconnect
Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c2
-rw-r--r--source3/libsmb/clierror.c9
-rw-r--r--source3/libsmb/proto.h1
3 files changed, 1 insertions, 11 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 20f9afdfa0..d4138e9172 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -323,7 +323,7 @@ static void _cli_shutdown(struct cli_state *cli)
data_blob_free(&cli->user_session_key);
- cli_state_disconnect(cli);
+ smbXcli_conn_disconnect(cli->conn, NT_STATUS_OK);
TALLOC_FREE(cli);
}
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index 4997d41fdf..a53c9c4e1e 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/libsmb/clierror.c
@@ -190,12 +190,3 @@ bool cli_state_is_connected(struct cli_state *cli)
return smbXcli_conn_is_connected(cli->conn);
}
-
-void cli_state_disconnect(struct cli_state *cli)
-{
- /*
- * passing NT_STATUS_OK means the caller will not
- * be notified, which matches the old behavior
- */
- smbXcli_conn_disconnect(cli->conn, NT_STATUS_OK);
-}
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index db45016ecb..a584a63763 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -207,7 +207,6 @@ bool cli_is_error(struct cli_state *cli);
bool cli_is_nt_error(struct cli_state *cli);
bool cli_is_dos_error(struct cli_state *cli);
bool cli_state_is_connected(struct cli_state *cli);
-void cli_state_disconnect(struct cli_state *cli);
/* The following definitions come from libsmb/clifile.c */