summaryrefslogtreecommitdiff
path: root/source4/libcli/util
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-04 11:39:21 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-05-06 07:51:24 +0200
commitfa289e8982ea260a87548c145ef061e7eb64acf6 (patch)
tree19f4623077b922836506f63cde64b40eb1f73c87 /source4/libcli/util
parent14750139639b3531e57a3ca3f9e481d6e458dc06 (diff)
downloadsamba-fa289e8982ea260a87548c145ef061e7eb64acf6.tar.gz
samba-fa289e8982ea260a87548c145ef061e7eb64acf6.tar.bz2
samba-fa289e8982ea260a87548c145ef061e7eb64acf6.zip
s3-lib Remove unused dos error codes from errmap_unix
This also makes unix_nt_errmap private to errmap_unix.c and errormap.c so the tables themselves cannot be duplicate symbols until merged. Andrew Bartlett
Diffstat (limited to 'source4/libcli/util')
-rw-r--r--source4/libcli/util/errormap.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c
index a0154e370b..962dc24a45 100644
--- a/source4/libcli/util/errormap.c
+++ b/source4/libcli/util/errormap.c
@@ -1259,14 +1259,12 @@ WERROR ntstatus_to_werror(NTSTATUS error)
return W_ERROR(NT_STATUS_V(error) & 0xffff);
}
-/* Mapping between Unix, DOS and NT error numbers */
+/* Mapping between Unix, and NT error numbers */
-struct unix_error_map {
+static const struct {
int unix_error;
NTSTATUS nt_error;
-};
-
-const struct unix_error_map unix_nt_errmap[] = {
+} unix_nt_errmap[] = {
{ EAGAIN, STATUS_MORE_ENTRIES },
{ EINTR, STATUS_MORE_ENTRIES },
{ ENOBUFS, STATUS_MORE_ENTRIES },