mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
libcli/util: let WERR_UNKNOWN_LEVEL be an alias to WERR_INVALID_LEVEL
WERR_INVALID_LEVEL is the documented name that should be printed in logs. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
da4f31e1c9
commit
d620f462ff
@ -46,7 +46,6 @@ static const struct werror_code_struct dos_errs[] =
|
||||
{ "WERR_BAD_PASSWORD", WERR_BAD_PASSWORD },
|
||||
{ "WERR_NOMEM", WERR_NOMEM },
|
||||
{ "WERR_INVALID_NAME", WERR_INVALID_NAME },
|
||||
{ "WERR_UNKNOWN_LEVEL", WERR_UNKNOWN_LEVEL },
|
||||
{ "WERR_OBJECT_PATH_INVALID", WERR_OBJECT_PATH_INVALID },
|
||||
{ "WERR_ALREADY_EXISTS", WERR_ALREADY_EXISTS },
|
||||
{ "WERR_NO_MORE_ITEMS", WERR_NO_MORE_ITEMS },
|
||||
|
@ -104,7 +104,6 @@ typedef uint32_t WERROR;
|
||||
#define WERR_SEM_TIMEOUT W_ERROR(0x00000079)
|
||||
#define WERR_INSUFFICIENT_BUFFER W_ERROR(0x0000007A)
|
||||
#define WERR_INVALID_NAME W_ERROR(0x0000007B)
|
||||
#define WERR_UNKNOWN_LEVEL W_ERROR(0x0000007C)
|
||||
#define WERR_OBJECT_PATH_INVALID W_ERROR(0x000000A1)
|
||||
#define WERR_ALREADY_EXISTS W_ERROR(0x000000B7)
|
||||
#define WERR_MORE_DATA W_ERROR(0x000000EA)
|
||||
@ -261,6 +260,9 @@ typedef uint32_t WERROR;
|
||||
/* Generic error code aliases */
|
||||
#define WERR_FOOBAR WERR_GENERAL_FAILURE
|
||||
|
||||
/* TODO: remove WERR_UNKNOWN_LEVEL in all callers */
|
||||
#define WERR_UNKNOWN_LEVEL WERR_INVALID_LEVEL
|
||||
|
||||
/*****************************************************************************
|
||||
Auto-generated Win32 error from:
|
||||
http://msdn.microsoft.com/en-us/library/cc231199%28PROT.10%29.aspx
|
||||
|
Loading…
x
Reference in New Issue
Block a user