1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/libcli/util
David Disseldorp af6bf7714d lib: use differing NTSTATUS and WERROR struct members
This allows the compiler to catch uses of incorrectly typed arguments
for [NT_STATUS|W_ERROR]_IS_OK() and [NT_STATUS|W_ERROR]_EQUAL(). I.e.

WERROR werr;

werr = my_fn();        /* XXX returns WERROR type */

if (NT_STATUS_EQUAL(werr, NT_STATUS_OBJECT_NAME_COLLISION)) {
2012-01-23 12:18:20 -08:00
..
doserr.c s4-doserr: telling our users to "see Windows help" doesn't seem right 2010-11-17 23:55:39 +11:00
doserr.h Import new DOS error codes from Samba 3. 2008-10-23 03:13:08 +02:00
errmap_unix.c libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol 2011-06-20 08:12:03 +02:00
error.h errormap: Add unix_to_werror() function 2011-09-28 02:02:35 +02:00
errormap.c errormap: Add unix_to_werror() function 2011-09-28 02:02:35 +02:00
nterr.c libcli/util: add NT_STATUS_NETWORK_SESSION_EXPIRED and NT_STATUS_ALL_SIDS_FILTERED 2011-12-17 14:24:40 +01:00
ntstatus.h lib: Fix NT_STATUS_ALL_SIDS_FILTERED definition 2011-12-23 23:19:17 +01:00
tstream.c libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol 2011-06-20 08:12:03 +02:00
tstream.h tstream: Added a typedef for the function prototype. 2010-02-23 13:48:22 +01:00
werror.h lib: use differing NTSTATUS and WERROR struct members 2012-01-23 12:18:20 -08:00
wscript_build lib/util Remove samba-util-common! 2011-06-21 09:36:22 +10:00