Fix the problem that the type of a constant string does not match
when it is assigned to a character pointer.
Signed-off-by: Bing Xia <xiabing14@h-partners.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
};
struct db_fields {
- char *name;
- char *type;
+ const char *name;
+ const char *type;
};
struct db_table_descriptor {
- char *name;
+ const char *name;
const struct db_fields *fields;
size_t num_fields;
};