summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-03-23 08:45:03 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-03-23 08:45:03 +0000
commit33dd5128961f2a39cd70c7b6766a524aba2443d7 (patch)
tree2166e489fe22d0436b364020e965d7e8661c8e63 /source3/lib
parentd6d9d6debdbf9bfa3fba287e0a1799e764c6b0d5 (diff)
downloadsamba-33dd5128961f2a39cd70c7b6766a524aba2443d7.tar.gz
samba-33dd5128961f2a39cd70c7b6766a524aba2443d7.tar.bz2
samba-33dd5128961f2a39cd70c7b6766a524aba2443d7.zip
Make a number of the lookup tables 'const'. I'm told this assists in sharing
memory between users of shared libs. Andrew Bartlett (This used to be commit 41dd5a4d292bb08fa313f6220014cd9b4490237b)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/error.c2
-rw-r--r--source3/lib/pam_errors.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/error.c b/source3/lib/error.c
index e17cd79eda..22ac1cb2d7 100644
--- a/source3/lib/error.c
+++ b/source3/lib/error.c
@@ -22,7 +22,7 @@
/* Mapping between Unix, DOS and NT error numbers */
-struct unix_error_map unix_dos_nt_errmap[] = {
+const struct unix_error_map unix_dos_nt_errmap[] = {
{ EPERM, ERRDOS, ERRnoaccess, NT_STATUS_ACCESS_DENIED },
{ EACCES, ERRDOS, ERRnoaccess, NT_STATUS_ACCESS_DENIED },
{ ENOENT, ERRDOS, ERRbadfile, NT_STATUS_NO_SUCH_FILE },
diff --git a/source3/lib/pam_errors.c b/source3/lib/pam_errors.c
index f0f47333cb..1971e3b763 100644
--- a/source3/lib/pam_errors.c
+++ b/source3/lib/pam_errors.c
@@ -24,7 +24,7 @@
#include <security/pam_appl.h>
/* PAM -> NT_STATUS map */
-static struct {
+const static struct {
int pam_code;
NTSTATUS ntstatus;
} pam_to_nt_status_map[] = {
@@ -55,7 +55,7 @@ static struct {
};
/* NT_STATUS -> PAM map */
-static struct {
+const static struct {
NTSTATUS ntstatus;
int pam_code;
} nt_status_to_pam_map[] = {