summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-23 12:26:03 +0200
committerVolker Lendecke <vlendec@samba.org>2011-05-23 16:54:21 +0200
commit18ec1dab59b16db7cf353c0144c43969cfdc3be7 (patch)
tree11c1fcee16ff5757bf3b1962839893caed3fbd26 /source3/libsmb
parent502a9924ca825f286e759219757455245367ab6b (diff)
downloadsamba-18ec1dab59b16db7cf353c0144c43969cfdc3be7.tar.gz
samba-18ec1dab59b16db7cf353c0144c43969cfdc3be7.tar.xz
samba-18ec1dab59b16db7cf353c0144c43969cfdc3be7.zip
s3: Remove unused cli_get_nt_error
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon May 23 16:54:21 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clierror.c17
-rw-r--r--source3/libsmb/proto.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index e027624de7..d5ac8937ed 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/libsmb/clierror.c
@@ -323,23 +323,6 @@ bool cli_is_dos_error(struct cli_state *cli)
return cli_is_error(cli) && !(flgs2 & FLAGS2_32_BIT_ERROR_CODES);
}
-/* Return the last error always as an NTSTATUS. */
-
-NTSTATUS cli_get_nt_error(struct cli_state *cli)
-{
- if (cli_is_nt_error(cli)) {
- return cli_nt_error(cli);
- } else if (cli_is_dos_error(cli)) {
- uint32 ecode;
- uint8 eclass;
- cli_dos_error(cli, &eclass, &ecode);
- return dos_to_ntstatus(eclass, ecode);
- } else {
- /* Something went wrong, we don't know what. */
- return NT_STATUS_UNSUCCESSFUL;
- }
-}
-
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 c7e3bc7bcd..213b81129e 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -190,7 +190,6 @@ int cli_errno(struct cli_state *cli);
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);
-NTSTATUS cli_get_nt_error(struct cli_state *cli);
bool cli_state_is_connected(struct cli_state *cli);
/* The following definitions come from libsmb/clifile.c */