diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-23 15:35:21 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-23 15:35:21 +0200 |
commit | 44b728958ae9a48bb56591532e5db9867311c1b9 (patch) | |
tree | 291e18735b29c09e106c6916e92c26125654d68f /libcli/util/ntstatus.h | |
parent | 8a3bff343a21bc8b4c229bae5830db7462fea25f (diff) | |
download | samba-44b728958ae9a48bb56591532e5db9867311c1b9.tar.gz samba-44b728958ae9a48bb56591532e5db9867311c1b9.tar.bz2 samba-44b728958ae9a48bb56591532e5db9867311c1b9.zip |
Use common error definitions.
Diffstat (limited to 'libcli/util/ntstatus.h')
-rw-r--r-- | libcli/util/ntstatus.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcli/util/ntstatus.h b/libcli/util/ntstatus.h index b7195a41b4..bf03d51d02 100644 --- a/libcli/util/ntstatus.h +++ b/libcli/util/ntstatus.h @@ -632,7 +632,11 @@ NTSTATUS nt_status_string_to_code(const char *nt_status_str); #define NT_STATUS_IS_ERR(x) ((NT_STATUS_V(x) & 0xc0000000) == 0xc0000000) /* checking for DOS error mapping here is ugly, but unfortunately the alternative is a very intrusive rewrite of the torture code */ +#if _SAMBA_BUILD_ == 4 #define NT_STATUS_EQUAL(x,y) (NT_STATUS_IS_DOS(x)||NT_STATUS_IS_DOS(y)?ntstatus_dos_equal(x,y):NT_STATUS_V(x) == NT_STATUS_V(y)) +#else +#define NT_STATUS_EQUAL(x,y) (NT_STATUS_V(x) == NT_STATUS_V(y)) +#endif #define NT_STATUS_HAVE_NO_MEMORY(x) do { \ if (!(x)) {\ |