Config types are shared so they should never be modified. Hence, make them
constant.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
unsigned int flags;
char short_name;
const char *long_name;
- struct conf_type *type;
+ const struct conf_type *type;
void *mem;
void *def;
};
*(void**)opt->mem = opt->def;
}
-static struct conf_type conf_bool = {
+static const struct conf_type conf_bool = {
.parse = parse_bool,
.free = NULL,
.set_default = default_bool,
};
-static struct conf_type conf_string = {
+static const struct conf_type conf_string = {
.parse = parse_string,
.free = free_value,
.set_default = default_string,