libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol
[sfrench/samba-autobuild/.git] / libcli / util / error.h
index 03e76a2a39d2577e6d50f3acdc76717faa8f26de..5c4dc10916bf4a0435b2687a902976f16e1ed5ba 100644 (file)
 #include "libcli/util/werror.h"
 #include "libcli/util/doserr.h"
 #include "libcli/util/ntstatus.h"
-#include "nsswitch/libwbclient/wbclient.h"
-
-/** NT error on DOS connection! (NT_STATUS_OK) */
-bool ntstatus_dos_equal(NTSTATUS status1, NTSTATUS status2);
 
 /*****************************************************************************
 convert a NT status code to a dos class/code
@@ -45,11 +41,8 @@ WERROR ntstatus_to_werror(NTSTATUS error);
 /*********************************************************************
  Map an NT error code from a Unix error code.
 *********************************************************************/
-NTSTATUS map_nt_error_from_unix(int unix_error);
+NTSTATUS map_nt_error_from_unix_common(int unix_error);
 
-/*******************************************************************************
- Map between wbcErr and NT status.
-*******************************************************************************/
-NTSTATUS map_nt_error_from_wbcErr(wbcErr wbc_err);
+NTSTATUS nt_status_squash(NTSTATUS nt_status);
 
 #endif /* _SAMBA_ERROR_H */