X-Git-Url: http://git.droids-corp.org/?p=protos%2Flibecoli.git;a=blobdiff_plain;f=src%2Fecoli_node_dynamic.c;fp=src%2Fecoli_node_dynamic.c;h=a7130aaf1f02d964b3b19a6d427e53758d74e52d;hp=7c73b65b67b676149e60d6f7097df2ad6ef50bdb;hb=41bf1ba66e15c00f38375d05e49b31aa70f92349;hpb=03fcfd9562d205a050aba4c17902c56bbc817d54 diff --git a/src/ecoli_node_dynamic.c b/src/ecoli_node_dynamic.c index 7c73b65..a7130aa 100644 --- a/src/ecoli_node_dynamic.c +++ b/src/ecoli_node_dynamic.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include @@ -47,7 +47,7 @@ ec_node_dynamic_parse(const struct ec_node *gen_node, /* add the node pointer in the attributes, so it will be freed * when parse is freed */ snprintf(key, sizeof(key), "_dyn_%p", child); - ret = ec_keyval_set(ec_parse_get_attrs(parse), key, child, + ret = ec_dict_set(ec_parse_get_attrs(parse), key, child, (void *)node_free); if (ret < 0) { child = NULL; /* already freed */ @@ -81,7 +81,7 @@ ec_node_dynamic_complete(const struct ec_node *gen_node, /* add the node pointer in the attributes, so it will be freed * when parse is freed */ snprintf(key, sizeof(key), "_dyn_%p", child); - ret = ec_keyval_set(comp->attrs, key, child, + ret = ec_dict_set(comp->attrs, key, child, (void *)node_free); if (ret < 0) { child = NULL; /* already freed */