Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147507746
D43204.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43204.id.diff
View Options
diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c
--- a/sys/cam/scsi/scsi_sa.c
+++ b/sys/cam/scsi/scsi_sa.c
@@ -632,7 +632,7 @@
int table_ents);
static int sasetprotents(struct cam_periph *periph,
struct mtparamset *ps, int num_params);
-static struct sa_param_ent *safindparament(struct mtparamset *ps);
+static const struct sa_param_ent *safindparament(struct mtparamset *ps);
static int saparamsetlist(struct cam_periph *periph,
struct mtsetlist *list, int need_copy);
static int saextget(struct cdev *dev, struct cam_periph *periph,
@@ -1355,7 +1355,7 @@
SA_PARAM_TYPE_NODE
} sa_param_type;
-struct sa_param_ent {
+static const struct sa_param_ent {
char *name;
sa_param_type param_type;
int (*set_func)(struct cam_periph *periph, struct mtparamset *ps,
@@ -1366,7 +1366,7 @@
{"protection.", SA_PARAM_TYPE_NODE, sasetprotents }
};
-static struct sa_param_ent *
+static const struct sa_param_ent *
safindparament(struct mtparamset *ps)
{
unsigned int i;
@@ -1402,7 +1402,7 @@
int i, contig_ents;
int error;
struct mtparamset *params, *first;
- struct sa_param_ent *first_ent;
+ const struct sa_param_ent *first_ent;
error = 0;
params = NULL;
@@ -1443,7 +1443,7 @@
first = NULL;
first_ent = NULL;
for (i = 0; i < list->num_params; i++) {
- struct sa_param_ent *ent;
+ const struct sa_param_ent *ent;
ent = safindparament(¶ms[i]);
if (ent == NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 12, 12:43 PM (1 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29582798
Default Alt Text
D43204.id.diff (1 KB)
Attached To
Mode
D43204: sa: Make sa_param_table[] const and static
Attached
Detach File
Event Timeline
Log In to Comment