X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fecoli_node_int.c;h=1b620b77b21f8681da51c9c4d82b5e8dc459af36;hb=786e4464e886f4e1485ba2beb6ed74c8a5914fbf;hp=b42a9126590eab7fd83dfd3dfc1046f2eea5bc40;hpb=833dc6c2a9c47b821548b197a1d1f96f60df7de8;p=protos%2Flibecoli.git diff --git a/lib/ecoli_node_int.c b/lib/ecoli_node_int.c index b42a912..1b620b7 100644 --- a/lib/ecoli_node_int.c +++ b/lib/ecoli_node_int.c @@ -154,6 +154,9 @@ static const struct ec_config_schema ec_node_int_schema[] = { .desc = "The base to use. If unset or 0, try to guess.", .type = EC_CONFIG_TYPE_UINT64, }, + { + .type = EC_CONFIG_TYPE_NONE, + }, }; static int ec_node_int_set_config(struct ec_node *gen_node, @@ -201,7 +204,6 @@ fail: static struct ec_node_type ec_node_int_type = { .name = "int", .schema = ec_node_int_schema, - .schema_len = EC_COUNT_OF(ec_node_int_schema), .set_config = ec_node_int_set_config, .parse = ec_node_int_uint_parse, .complete = ec_node_complete_unknown, @@ -265,6 +267,9 @@ static const struct ec_config_schema ec_node_uint_schema[] = { .desc = "The base to use. If unset or 0, try to guess.", .type = EC_CONFIG_TYPE_UINT64, }, + { + .type = EC_CONFIG_TYPE_NONE, + }, }; static int ec_node_uint_set_config(struct ec_node *gen_node, @@ -312,7 +317,6 @@ fail: static struct ec_node_type ec_node_uint_type = { .name = "uint", .schema = ec_node_uint_schema, - .schema_len = EC_COUNT_OF(ec_node_uint_schema), .set_config = ec_node_uint_set_config, .parse = ec_node_int_uint_parse, .complete = ec_node_complete_unknown,