From 502a9924ca825f286e759219757455245367ab6b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 23 May 2011 12:25:32 +0200 Subject: s3: Remove unused cli_set_nt_error --- source3/libsmb/clierror.c | 9 --------- source3/libsmb/proto.h | 1 - 2 files changed, 10 deletions(-) diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c index 3853490493..e027624de7 100644 --- a/source3/libsmb/clierror.c +++ b/source3/libsmb/clierror.c @@ -340,15 +340,6 @@ NTSTATUS cli_get_nt_error(struct cli_state *cli) } } -/* Push an error code into the inbuf to be returned on the next - * query. */ - -void cli_set_nt_error(struct cli_state *cli, NTSTATUS status) -{ - SSVAL(cli->inbuf,smb_flg2, SVAL(cli->inbuf,smb_flg2)|FLAGS2_32_BIT_ERROR_CODES); - SIVAL(cli->inbuf, smb_rcls, NT_STATUS_V(status)); -} - 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 a2931592c9..c7e3bc7bcd 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -191,7 +191,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); NTSTATUS cli_get_nt_error(struct cli_state *cli); -void cli_set_nt_error(struct cli_state *cli, NTSTATUS status); bool cli_state_is_connected(struct cli_state *cli); /* The following definitions come from libsmb/clifile.c */ -- cgit