From 1233ba7bf3d2dfd9a84eb52d601e589411c55185 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 16 Jun 2011 13:00:09 +1000 Subject: libclu/util: Move get_friendly_nt_error_msg() in common. Andrew Bartlett Signed-off-by: Andrew Tridgell --- libcli/util/ntstatus.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libcli/util/ntstatus.h') diff --git a/libcli/util/ntstatus.h b/libcli/util/ntstatus.h index 13ce733ca3..2f1635093b 100644 --- a/libcli/util/ntstatus.h +++ b/libcli/util/ntstatus.h @@ -628,6 +628,15 @@ typedef uint32_t NTSTATUS; * this means we need a torture test */ #define NT_STATUS_FOOBAR NT_STATUS_UNSUCCESSFUL +/***************************************************************************** + Returns an NT error message. not amazingly helpful, but better than a number. + + This version is const, and so neither allocates memory nor uses a + static variable for unknown errors. + *****************************************************************************/ + +const char *nt_errstr_const(NTSTATUS nt_code); + /***************************************************************************** returns an NT error message. not amazingly helpful, but better than a number. *****************************************************************************/ -- cgit