[PATCH] lib: Make nt_err_code_struct private
Volker Lendecke
Volker.Lendecke at SerNet.DE
Tue Sep 16 15:40:37 MDT 2014
Hi!
Review&push would be appreciated.
Thanks,
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From 248b826b55d97ab36942cf220a8b6506cf5fa0f1 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Tue, 16 Sep 2014 23:38:24 +0200
Subject: [PATCH] lib: Make nt_err_code_struct private
Signed-off-by: Volker Lendecke <vl at samba.org>
---
libcli/util/nterr.c | 6 ++++++
libcli/util/ntstatus.h | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/libcli/util/nterr.c b/libcli/util/nterr.c
index ce2647d..9f90f7a 100644
--- a/libcli/util/nterr.c
+++ b/libcli/util/nterr.c
@@ -33,6 +33,12 @@
#define DOS_CODE(class, code) { #class ":" #code, NT_STATUS_DOS(class, code) }
#define LDAP_CODE(code) { #code, NT_STATUS_LDAP(code) }
+typedef struct
+{
+ const char *nt_errstr;
+ NTSTATUS nt_errcode;
+} nt_err_code_struct;
+
const nt_err_code_struct nt_errs[] =
{
{ "NT_STATUS_OK", NT_STATUS_OK },
diff --git a/libcli/util/ntstatus.h b/libcli/util/ntstatus.h
index 1c3f98b..bb19234 100644
--- a/libcli/util/ntstatus.h
+++ b/libcli/util/ntstatus.h
@@ -2008,10 +2008,4 @@ NTSTATUS nt_status_string_to_code(const char *nt_status_str);
(((NT_STATUS_V(status) & 0xFFFF) == 0xC0020000) || \
((NT_STATUS_V(status) & 0xFFFF) == 0xC0030000))
-typedef struct
-{
- const char *nt_errstr;
- NTSTATUS nt_errcode;
-} nt_err_code_struct;
-
#endif /* _NTSTATUS_H */
--
1.7.9.5
More information about the samba-technical
mailing list