summaryrefslogtreecommitdiff
path: root/libcli/util/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcli/util/error.h')
-rw-r--r--libcli/util/error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcli/util/error.h b/libcli/util/error.h
index 5a7cc1b0b9..77a2f5a433 100644
--- a/libcli/util/error.h
+++ b/libcli/util/error.h
@@ -46,4 +46,9 @@ WERROR ntstatus_to_werror(NTSTATUS error);
*********************************************************************/
NTSTATUS map_nt_error_from_unix(int unix_error);
+/*********************************************************************
+convert a Unix error code to a WERROR
+*********************************************************************/
+WERROR unix_to_werror(int unix_error);
+
#endif /* _SAMBA_ERROR_H */