]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Remove unused cli_errno()
authorVolker Lendecke <vl@samba.org>
Mon, 19 Aug 2024 07:30:42 +0000 (09:30 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Aug 2024 09:34:40 +0000 (09:34 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/clierror.c
source3/libsmb/proto.h

index 630a3f30d6b54b3875c5f056c32ab8229cfc625d..628c0c82fc929730425c8a3eac906adf5778e8c0 100644 (file)
@@ -50,23 +50,6 @@ int cli_status_to_errno(NTSTATUS status)
        return err;
 }
 
-/* Return a UNIX errno appropriate for the error received in the last
-   packet. */
-
-int cli_errno(struct cli_state *cli)
-{
-       bool connected;
-       int err;
-
-       connected = cli_state_is_connected(cli);
-       if (!connected) {
-               return EPIPE;
-       }
-
-       err = cli_status_to_errno(cli->raw_status);
-       return err;
-}
-
 /* Return true if the last packet was in error */
 
 bool cli_is_error(struct cli_state *cli)
index 690b56604b1adfb08083d8919595c699c9354bcd..1cd8dbdaa6d56d713c262aba5dcc300c1038f842 100644 (file)
@@ -224,7 +224,6 @@ NTSTATUS cli_smb(TALLOC_CTX *mem_ctx, struct cli_state *cli,
 /* The following definitions come from libsmb/clierror.c  */
 
 int cli_status_to_errno(NTSTATUS status);
-int cli_errno(struct cli_state *cli);
 bool cli_is_error(struct cli_state *cli);
 bool cli_state_is_connected(struct cli_state *cli);