summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clierror.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-10-29 08:12:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-10-29 08:12:44 +0000
commitcb84485a2b0e1fdcb6fa90e0bfb97e125ae1b3dd (patch)
treeb5fcce3f16f94750c166788ba393aea2f481b9d8 /source/libsmb/clierror.c
parentc95f5aeb9327347674589ae313b75bee3bf8e317 (diff)
downloadsamba-cb84485a2b0e1fdcb6fa90e0bfb97e125ae1b3dd.tar.gz
samba-cb84485a2b0e1fdcb6fa90e0bfb97e125ae1b3dd.tar.xz
samba-cb84485a2b0e1fdcb6fa90e0bfb97e125ae1b3dd.zip
This patch applied, except without the structure changes to nmblib.c
Andrew Bartlett. From kai@cmail.ru Mon Oct 29 18:50:42 2001 Date: Fri, 19 Oct 2001 17:26:06 +0300 From: Andrew V. Samoilov <kai@cmail.ru> To: samba-technical@lists.samba.org Subject: [patch]: makes some arrays const to be shared between processes Hi! This patch makes some arrays const. So these arrays go to text/rodata segment and are shared between all of the processes which use shared library with these arrays. Regards, Andrew V. Samoilov. P.S. Please cc your answer to kai@cmail.ru, I don't subscribed to this list. ChangeLog: * cliconnect.c (prots): Make const. * clierror.c (rap_errmap): Likewise. * nmblib.c (nmb_header_opcode_names): Likewise. (lookup_opcode_name): Make opcode_namep const. Eliminate i. * nterr.c (nt_err_code_struct): Typedef const. * smberr.c (err_code_struct): Make const. (err_classes): Likewise.
Diffstat (limited to 'source/libsmb/clierror.c')
-rw-r--r--source/libsmb/clierror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/clierror.c b/source/libsmb/clierror.c
index bcecc92d778..fe793d4b0e3 100644
--- a/source/libsmb/clierror.c
+++ b/source/libsmb/clierror.c
@@ -27,7 +27,7 @@
RAP error codes - a small start but will be extended.
*******************************************************/
-static struct
+static const struct
{
int err;
char *message;