summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-08 10:54:53 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-08 14:09:10 +0200
commit83301d8b5a96823a90ab3f25effd2d4c28a6d8c9 (patch)
treeb2d0fdccf1c85feba0b38c739581b1fc2fd1937c /source3
parent235aedae5030dac138fbaa5726022f5007586cd2 (diff)
downloadsamba-83301d8b5a96823a90ab3f25effd2d4c28a6d8c9.tar.gz
samba-83301d8b5a96823a90ab3f25effd2d4c28a6d8c9.tar.bz2
samba-83301d8b5a96823a90ab3f25effd2d4c28a6d8c9.zip
s3:libsmb/smberr: make global const arrays static
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smberr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/smberr.c b/source3/libsmb/smberr.c
index 8c4c5f36cb..1156a9d75d 100644
--- a/source3/libsmb/smberr.c
+++ b/source3/libsmb/smberr.c
@@ -40,7 +40,7 @@ typedef const struct
} err_code_struct;
/* Dos Error Messages */
-err_code_struct dos_msgs[] = {
+static err_code_struct dos_msgs[] = {
{"ERRbadfunc",ERRbadfunc,"Invalid function."},
{"ERRbadfile",ERRbadfile,"File not found."},
{"ERRbadpath",ERRbadpath,"Directory invalid."},
@@ -79,7 +79,7 @@ err_code_struct dos_msgs[] = {
{NULL,-1,NULL}};
/* Server Error Messages */
-err_code_struct server_msgs[] = {
+static err_code_struct server_msgs[] = {
{"ERRerror",1,"Non-specific error code."},
{"ERRbadpw",2,"Bad password - name/password pair in a Tree Connect or Session Setup are invalid."},
{"ERRbadtype",3,"reserved."},
@@ -115,7 +115,7 @@ err_code_struct server_msgs[] = {
{NULL,-1,NULL}};
/* Hard Error Messages */
-err_code_struct hard_msgs[] = {
+static err_code_struct hard_msgs[] = {
{"ERRnowrite",19,"Attempt to write on write-protected diskette."},
{"ERRbadunit",20,"Unknown unit."},
{"ERRnotready",21,"Drive not ready."},
@@ -137,7 +137,7 @@ err_code_struct hard_msgs[] = {
{NULL,-1,NULL}};
-const struct
+static const struct
{
int code;
const char *e_class;