diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-03-23 08:45:03 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-03-23 08:45:03 +0000 |
commit | 33dd5128961f2a39cd70c7b6766a524aba2443d7 (patch) | |
tree | 2166e489fe22d0436b364020e965d7e8661c8e63 /source3/libsmb/errormap.c | |
parent | d6d9d6debdbf9bfa3fba287e0a1799e764c6b0d5 (diff) | |
download | samba-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/libsmb/errormap.c')
-rw-r--r-- | source3/libsmb/errormap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/errormap.c b/source3/libsmb/errormap.c index a4a5a8741e..c30db3ad95 100644 --- a/source3/libsmb/errormap.c +++ b/source3/libsmb/errormap.c @@ -43,7 +43,7 @@ */ /* NT status -> dos error map */ -static struct { +const static struct { uint8 dos_class; uint32 dos_code; NTSTATUS ntstatus; @@ -609,7 +609,7 @@ static struct { /* dos -> nt status error map */ -static struct { +const static struct { uint8 dos_class; uint32 dos_code; NTSTATUS ntstatus; @@ -864,7 +864,7 @@ static struct { }; /* errmap NTSTATUS->Win32 */ -static struct { +const static struct { NTSTATUS ntstatus; WERROR werror; } ntstatus_to_werror_map[] = { |