1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s3:libsmb/smberr: make global const arrays static

metze
This commit is contained in:
Stefan Metzmacher
2011-07-08 10:54:53 +02:00
parent 235aedae50
commit 83301d8b5a

View File

@ -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;