use EC_NO_ID instead of NULL
[protos/libecoli.git] / lib / ecoli_node_subset.c
index 8fe4b65..53b1a89 100644 (file)
@@ -351,12 +351,12 @@ static int ec_node_subset_testcase(void)
        struct ec_node *node;
        int ret = 0;
 
-       node = EC_NODE_SUBSET(NULL,
-               EC_NODE_OR(NULL,
-                       ec_node_str(NULL, "foo"),
-                       ec_node_str(NULL, "bar")),
-               ec_node_str(NULL, "bar"),
-               ec_node_str(NULL, "toto")
+       node = EC_NODE_SUBSET(EC_NO_ID,
+               EC_NODE_OR(EC_NO_ID,
+                       ec_node_str(EC_NO_ID, "foo"),
+                       ec_node_str(EC_NO_ID, "bar")),
+               ec_node_str(EC_NO_ID, "bar"),
+               ec_node_str(EC_NO_ID, "toto")
        );
        if (node == NULL) {
                EC_LOG(EC_LOG_ERR, "cannot create node\n");
@@ -375,12 +375,12 @@ static int ec_node_subset_testcase(void)
        ec_node_free(node);
 
        /* test completion */
-       node = EC_NODE_SUBSET(NULL,
-               ec_node_str(NULL, "foo"),
-               ec_node_str(NULL, "bar"),
-               ec_node_str(NULL, "bar2"),
-               ec_node_str(NULL, "toto"),
-               ec_node_str(NULL, "titi")
+       node = EC_NODE_SUBSET(EC_NO_ID,
+               ec_node_str(EC_NO_ID, "foo"),
+               ec_node_str(EC_NO_ID, "bar"),
+               ec_node_str(EC_NO_ID, "bar2"),
+               ec_node_str(EC_NO_ID, "toto"),
+               ec_node_str(EC_NO_ID, "titi")
        );
        if (node == NULL) {
                EC_LOG(EC_LOG_ERR, "cannot create node\n");