mirror of
https://github.com/samba-team/samba.git
synced 2025-08-07 09:49:30 +03:00
s3: Remove unused cli_reset_error
This commit is contained in:
@ -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) {
|
||||
|
@ -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 */
|
||||
|
Reference in New Issue
Block a user