X-Git-Url: http://git.droids-corp.org/?p=protos%2Flibecoli.git;a=blobdiff_plain;f=lib%2Fecoli_node_cmd.c;h=428f453e5def5fb7845d92573cf2cbc3140110ba;hp=b745fd8fbd007f8d86edafb895751f9afcf2e41f;hb=786e4464e886f4e1485ba2beb6ed74c8a5914fbf;hpb=833dc6c2a9c47b821548b197a1d1f96f60df7de8 diff --git a/lib/ecoli_node_cmd.c b/lib/ecoli_node_cmd.c index b745fd8..428f453 100644 --- a/lib/ecoli_node_cmd.c +++ b/lib/ecoli_node_cmd.c @@ -428,6 +428,9 @@ static const struct ec_config_schema ec_node_cmd_subschema[] = { .desc = "A child node whose id is referenced in the expression.", .type = EC_CONFIG_TYPE_NODE, }, + { + .type = EC_CONFIG_TYPE_NONE, + }, }; static const struct ec_config_schema ec_node_cmd_schema[] = { @@ -446,7 +449,9 @@ static const struct ec_config_schema ec_node_cmd_schema[] = { .desc = "The list of children nodes.", .type = EC_CONFIG_TYPE_LIST, .subschema = ec_node_cmd_subschema, - .subschema_len = EC_COUNT_OF(ec_node_cmd_subschema), + }, + { + .type = EC_CONFIG_TYPE_NONE, }, }; @@ -530,7 +535,6 @@ ec_node_cmd_get_child(const struct ec_node *gen_node, size_t i, static struct ec_node_type ec_node_cmd_type = { .name = "cmd", .schema = ec_node_cmd_schema, - .schema_len = EC_COUNT_OF(ec_node_cmd_schema), .set_config = ec_node_cmd_set_config, .parse = ec_node_cmd_parse, .complete = ec_node_cmd_complete,