config: conf_verify_dict() now assumes attr list is NULL-terminated

This commit is contained in:
Daniel Eklöf 2019-01-13 11:37:05 +01:00
parent 2df419efc2
commit 71515e4079
21 changed files with 22 additions and 34 deletions

View file

@ -282,7 +282,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 4,
.attrs = {
{"card", true, &conf_verify_string},
{"mixer", true, &conf_verify_string},

View file

@ -226,7 +226,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 3,
.attrs = {
{"name", true, &conf_verify_string},
{"content", true, &conf_verify_particle},

View file

@ -358,7 +358,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 4,
.attrs = {
{"name", true, &conf_verify_string},
{"poll-interval", false, &conf_verify_int},

View file

@ -109,7 +109,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 4,
.attrs = {
{"date-format", false, &conf_verify_string},
{"time-format", false, &conf_verify_string},

View file

@ -703,7 +703,6 @@ verify_content(keychain_t *chain, const struct yml_node *node)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 5,
.attrs = {
{"spacing", false, &conf_verify_int},
{"left-spacing", false, &conf_verify_int},

View file

@ -55,7 +55,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 2,
.attrs = {
{"content", true, &conf_verify_particle},
{"anchors", false, NULL},

View file

@ -493,7 +493,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 4,
.attrs = {
{"host", true, &conf_verify_string},
{"port", false, &conf_verify_int},

View file

@ -545,7 +545,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 3,
.attrs = {
{"name", true, &conf_verify_string},
{"content", true, &conf_verify_particle},

View file

@ -579,7 +579,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 5,
.attrs = {
{"spacing", false, &conf_verify_int},
{"left-spacing", false, &conf_verify_int},

View file

@ -461,7 +461,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 2,
.attrs = {
{"content", true, &conf_verify_particle},
{"anchors", false, NULL},

View file

@ -323,7 +323,6 @@ from_conf(const struct yml_node *node, const struct font *parent_font)
const struct module_info plugin_info = {
.from_conf = &from_conf,
.attr_count = 2,
.attrs = {
{"content", true, &conf_verify_particle},
{"anchors", false, NULL},