X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=src%2Fecoli_node_empty.c;h=c6585aae8e7fda23629e9454f93bab2e834d27c7;hb=HEAD;hp=6ce76e88bfd40542fb0e06602695ecb2bf8c2d4f;hpb=18d03456d96f7a086a2ccc82ce97fcf056848d90;p=protos%2Flibecoli.git diff --git a/src/ecoli_node_empty.c b/src/ecoli_node_empty.c index 6ce76e8..c6585aa 100644 --- a/src/ecoli_node_empty.c +++ b/src/ecoli_node_empty.c @@ -19,15 +19,14 @@ EC_LOG_TYPE_REGISTER(node_empty); struct ec_node_empty { - struct ec_node gen; }; -static int ec_node_empty_parse(const struct ec_node *gen_node, - struct ec_parse *state, +static int ec_node_empty_parse(const struct ec_node *node, + struct ec_pnode *pstate, const struct ec_strvec *strvec) { - (void)gen_node; - (void)state; + (void)node; + (void)pstate; (void)strvec; return 0; } @@ -35,7 +34,6 @@ static int ec_node_empty_parse(const struct ec_node *gen_node, static struct ec_node_type ec_node_empty_type = { .name = "empty", .parse = ec_node_empty_parse, - .complete = ec_node_complete_unknown, .size = sizeof(struct ec_node_empty), }; @@ -64,11 +62,11 @@ static int ec_node_empty_testcase(void) return -1; } testres |= EC_TEST_CHECK_COMPLETE(node, - "", EC_NODE_ENDLIST, - EC_NODE_ENDLIST); + "", EC_VA_END, + EC_VA_END); testres |= EC_TEST_CHECK_COMPLETE(node, - "foo", EC_NODE_ENDLIST, - EC_NODE_ENDLIST); + "foo", EC_VA_END, + EC_VA_END); ec_node_free(node); return testres;