diff options
Diffstat (limited to 'source3/libsmb/nterr.c')
-rw-r--r-- | source3/libsmb/nterr.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c index 7d0b3d08fd..a4a388303d 100644 --- a/source3/libsmb/nterr.c +++ b/source3/libsmb/nterr.c @@ -55,23 +55,3 @@ const char *nt_errstr(NTSTATUS nt_code) return result; } -/************************************************************************ - 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); -} - |