]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Remove unused cli_dos_error()
authorVolker Lendecke <vl@samba.org>
Sat, 23 Sep 2023 01:56:58 +0000 (18:56 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 25 Sep 2023 19:01:34 +0000 (19:01 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clierror.c
source3/libsmb/proto.h

index da4aa0aefd9fc7dd5d15d5e870e7055f4591b103..da7170b15ba714ce2a68e9177224190a7979dbab 100644 (file)
@@ -43,29 +43,6 @@ NTSTATUS cli_nt_error(struct cli_state *cli)
        return cli->raw_status;
 }
 
-
-/****************************************************************************
- Return the DOS error from the last packet - an error class and an error
- code.
-****************************************************************************/
-
-void cli_dos_error(struct cli_state *cli, uint8_t *eclass, uint32_t *ecode)
-{
-       if (!cli_state_is_connected(cli)) {
-               *eclass = ERRDOS;
-               *ecode = ERRnotconnected;
-               return;
-       }
-
-       if (!NT_STATUS_IS_DOS(cli->raw_status)) {
-               ntstatus_to_dos(cli->raw_status, eclass, ecode);
-               return;
-       }
-
-       *eclass = NT_STATUS_DOS_CLASS(cli->raw_status);
-       *ecode = NT_STATUS_DOS_CODE(cli->raw_status);
-}
-
 int cli_status_to_errno(NTSTATUS status)
 {
        int err;
index 6c814449b4d2f00e7e08dcb112d1b3f03f68c19c..6eea11f5a7df424cb222442bdf5a6c36c489805a 100644 (file)
@@ -218,7 +218,6 @@ NTSTATUS cli_smb(TALLOC_CTX *mem_ctx, struct cli_state *cli,
 /* The following definitions come from libsmb/clierror.c  */
 
 NTSTATUS cli_nt_error(struct cli_state *cli);
-void cli_dos_error(struct cli_state *cli, uint8_t *eclass, uint32_t *ecode);
 int cli_status_to_errno(NTSTATUS status);
 int cli_errno(struct cli_state *cli);
 bool cli_is_error(struct cli_state *cli);