summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-23 12:24:52 +0200
committerVolker Lendecke <vl@samba.org>2011-05-23 15:45:37 +0200
commitfddb944a04c94555b36b77e69d01ecb0dabbd79b (patch)
treea4c44fb07eb88567c69a211bfd5b550e19f99378
parente77da2f408a92822c7c1b08cc004890e18c8fc68 (diff)
downloadsamba-fddb944a04c94555b36b77e69d01ecb0dabbd79b.tar.gz
samba-fddb944a04c94555b36b77e69d01ecb0dabbd79b.tar.bz2
samba-fddb944a04c94555b36b77e69d01ecb0dabbd79b.zip
s3: Remove unused cli_reset_error
-rw-r--r--source3/libsmb/clierror.c12
-rw-r--r--source3/libsmb/proto.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index 145ce15c6f..3853490493 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/libsmb/clierror.c
@@ -349,18 +349,6 @@ void cli_set_nt_error(struct cli_state *cli, NTSTATUS status)
SIVAL(cli->inbuf, smb_rcls, NT_STATUS_V(status));
}
-/* Reset an error. */
-
-void cli_reset_error(struct cli_state *cli)
-{
- if (SVAL(cli->inbuf,smb_flg2) & FLAGS2_32_BIT_ERROR_CODES) {
- SIVAL(cli->inbuf, smb_rcls, NT_STATUS_V(NT_STATUS_OK));
- } else {
- SCVAL(cli->inbuf,smb_rcls,0);
- SSVAL(cli->inbuf,smb_err,0);
- }
-}
-
bool cli_state_is_connected(struct cli_state *cli)
{
if (cli == NULL) {
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 923dd38f95..a2931592c9 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -192,7 +192,6 @@ bool cli_is_nt_error(struct cli_state *cli);
bool cli_is_dos_error(struct cli_state *cli);
NTSTATUS cli_get_nt_error(struct cli_state *cli);
void cli_set_nt_error(struct cli_state *cli, NTSTATUS status);
-void cli_reset_error(struct cli_state *cli);
bool cli_state_is_connected(struct cli_state *cli);
/* The following definitions come from libsmb/clifile.c */