1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

const: libdm cmd_data_v4

This commit is contained in:
Zdenek Kabelac 2024-05-03 14:28:58 +02:00
parent 9247e754fe
commit c9f9744f50
4 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ static unsigned _ioctl_buffer_double_factor = 0;
const int _dm_compat = 0;
/* *INDENT-OFF* */
static struct cmd_data _cmd_data_v4[] = {
static const struct cmd_data _cmd_data_v4[] = {
{"create", DM_DEV_CREATE, {4, 0, 0}},
{"reload", DM_TABLE_LOAD, {4, 0, 0}},
{"remove", DM_DEV_REMOVE, {4, 0, 0}},

View File

@ -79,7 +79,7 @@ struct dm_task {
};
struct cmd_data {
const char *name;
const char name[16];
const unsigned cmd;
const int version[3];
};

View File

@ -89,7 +89,7 @@ static unsigned _ioctl_buffer_double_factor = 0;
const int _dm_compat = 0;
/* *INDENT-OFF* */
static struct cmd_data _cmd_data_v4[] = {
static const struct cmd_data _cmd_data_v4[] = {
{"create", DM_DEV_CREATE, {4, 0, 0}},
{"reload", DM_TABLE_LOAD, {4, 0, 0}},
{"remove", DM_DEV_REMOVE, {4, 0, 0}},

View File

@ -78,7 +78,7 @@ struct dm_task {
};
struct cmd_data {
const char *name;
const char name[16];
const unsigned cmd;
const int version[3];
};