summaryrefslogtreecommitdiff
path: root/libcli/util/ntstatus.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-16 13:00:09 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-17 17:08:59 +1000
commit1233ba7bf3d2dfd9a84eb52d601e589411c55185 (patch)
tree7288be923353c2b884fc6120b6ead219843b2faa /libcli/util/ntstatus.h
parentd2bc45e7ffb4e8d47878a6fc53c5f5c90dfd2114 (diff)
downloadsamba-1233ba7bf3d2dfd9a84eb52d601e589411c55185.tar.gz
samba-1233ba7bf3d2dfd9a84eb52d601e589411c55185.tar.bz2
samba-1233ba7bf3d2dfd9a84eb52d601e589411c55185.zip
libclu/util: Move get_friendly_nt_error_msg() in common.
Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'libcli/util/ntstatus.h')
-rw-r--r--libcli/util/ntstatus.h9
1 files changed, 9 insertions, 0 deletions
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
@@ -629,6 +629,15 @@ typedef uint32_t NTSTATUS;
#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.
*****************************************************************************/
const char *nt_errstr(NTSTATUS nt_code);