From 33dd5128961f2a39cd70c7b6766a524aba2443d7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 23 Mar 2002 08:45:03 +0000 Subject: 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) --- source3/libsmb/errormap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/libsmb/errormap.c') diff --git a/source3/libsmb/errormap.c b/source3/libsmb/errormap.c index a4a5a8741e3..c30db3ad95f 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[] = { -- cgit