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 --- source4/libcli/util/nterr.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'source4/libcli') diff --git a/source4/libcli/util/nterr.c b/source4/libcli/util/nterr.c index ea8c0fcd35..1532b5b787 100644 --- a/source4/libcli/util/nterr.c +++ b/source4/libcli/util/nterr.c @@ -52,23 +52,3 @@ const char *nt_errstr(NTSTATUS nt_code) return msg; } - -/************************************************************************ - Print friendler version fo NT error code - ***********************************************************************/ - -const char *get_friendly_nt_error_msg(NTSTATUS nt_code) -{ - int idx = 0; - - while (nt_err_desc[idx].nt_errstr != NULL) { - if (NT_STATUS_V(nt_err_desc[idx].nt_errcode) == NT_STATUS_V(nt_code)) { - return nt_err_desc[idx].nt_errstr; - } - idx++; - } - - /* fall back to NT_STATUS_XXX string */ - - return nt_errstr(nt_code); -} -- cgit