mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
libsmb: Remove SMBC_errno()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
15ff9c1819
commit
3cfe1683dd
@ -431,11 +431,6 @@ SMBC_ftruncate_ctx(SMBCCTX *context,
|
||||
/* Functions in libsmb_misc.c */
|
||||
bool SMBC_dlist_contains(SMBCFILE * list, SMBCFILE *p);
|
||||
|
||||
int
|
||||
SMBC_errno(SMBCCTX *context,
|
||||
struct cli_state *c);
|
||||
|
||||
|
||||
/* Functions in libsmb_path.c */
|
||||
int
|
||||
SMBC_parse_path(TALLOC_CTX *ctx,
|
||||
|
@ -44,34 +44,3 @@ bool SMBC_dlist_contains(SMBCFILE * list, SMBCFILE *p)
|
||||
} while (list != NULL);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Convert an SMB error into a UNIX error ...
|
||||
*/
|
||||
int
|
||||
SMBC_errno(SMBCCTX *context,
|
||||
struct cli_state *c)
|
||||
{
|
||||
int ret = cli_errno(c);
|
||||
|
||||
if (cli_is_dos_error(c)) {
|
||||
uint8_t eclass;
|
||||
uint32_t ecode;
|
||||
|
||||
cli_dos_error(c, &eclass, &ecode);
|
||||
|
||||
DEBUG(3,("smbc_error %d %d (0x%x) -> %d\n",
|
||||
(int)eclass, (int)ecode, (int)ecode, ret));
|
||||
} else {
|
||||
NTSTATUS status;
|
||||
|
||||
status = cli_nt_error(c);
|
||||
|
||||
DEBUG(3,("smbc errno %s -> %d\n",
|
||||
nt_errstr(status), ret));
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user