From fa289e8982ea260a87548c145ef061e7eb64acf6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 4 May 2011 11:39:21 +1000 Subject: 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 --- source4/libcli/util/errormap.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source4/libcli') 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 }, -- cgit