1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

gcc: use uint16_t for counters

This commit is contained in:
Zdenek Kabelac 2024-03-27 01:03:08 +01:00
parent 83b726e5dd
commit 4a69bacc20
2 changed files with 7 additions and 7 deletions

View File

@ -228,13 +228,13 @@ struct command {
struct opt_name {
const char *name; /* "foo_ARG" */
short opt_enum; /* foo_ARG */
uint16_t opt_enum; /* foo_ARG */
const char short_opt; /* -f */
char _padding[1];
const char *long_opt; /* --foo */
short val_enum; /* xyz_VAL when --foo takes a val like "--foo xyz" */
uint16_t val_enum; /* xyz_VAL when --foo takes a val like "--foo xyz" */
uint32_t flags;
short prio;
uint16_t prio;
const char *desc;
};
@ -242,7 +242,7 @@ struct opt_name {
struct val_name {
const char *enum_name; /* "foo_VAL" */
short val_enum; /* foo_VAL */
uint16_t val_enum; /* foo_VAL */
int (*fn) (struct cmd_context *cmd, struct arg_values *av); /* foo_arg() */
const char *name; /* FooVal */
const char *usage;
@ -252,7 +252,7 @@ struct val_name {
struct lv_prop {
const char *enum_name; /* "is_foo_LVP" */
short lvp_enum; /* is_foo_LVP */
uint16_t lvp_enum; /* is_foo_LVP */
const char *name; /* "lv_is_foo" */
int (*fn) (struct cmd_context *cmd, struct logical_volume *lv); /* lv_is_foo() */
};
@ -261,7 +261,7 @@ struct lv_prop {
struct lv_type {
const char *enum_name; /* "foo_LVT" */
short lvt_enum; /* foo_LVT */
uint16_t lvt_enum; /* foo_LVT */
const char *name; /* "foo" */
int (*fn) (struct cmd_context *cmd, struct logical_volume *lv); /* lv_is_foo() */
};

View File

@ -110,7 +110,7 @@ struct arg_values {
struct arg_value_group_list {
struct dm_list list;
uint32_t prio;
uint16_t prio;
struct arg_values arg_values[];
};