]> The Tcpdump Group git mirrors - tcpdump/commitdiff
smbutil.c: mark several structs as const
authorKovarththanan Rajaratnam <[email protected]>
Sat, 20 Feb 2010 07:55:19 +0000 (08:55 +0100)
committerKovarththanan Rajaratnam <[email protected]>
Sat, 20 Feb 2010 07:55:19 +0000 (08:55 +0100)
smbutil.c

index ba7ec31a9868aa371a2fd9c3c0fa9679ac06cbc1..5eadb4fdb5645f101a974aa2caea72b930cd2083 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -900,7 +900,7 @@ static const err_code_struct dos_msgs[] = {
  };
 
 /* Server Error Messages */
-err_code_struct server_msgs[] = {
+static const 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." },
@@ -937,7 +937,7 @@ err_code_struct server_msgs[] = {
 };
 
 /* Hard Error Messages */
-err_code_struct hard_msgs[] = {
+static const err_code_struct hard_msgs[] = {
     { "ERRnowrite", 19, "Attempt to write on write-protected diskette." },
     { "ERRbadunit", 20, "Unknown unit." },
     { "ERRnotready", 21, "Drive not ready." },