del -> unlink + const macro
[protos/libecoli.git] / lib / ecoli_node_many.c
index 8c0a2de..7d38a89 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright (c) 2016, Olivier MATZ <zer0@droids-corp.org>
+ * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
  */
 
 #include <stdio.h>
@@ -60,7 +60,7 @@ static int ec_node_many_parse(const struct ec_node *gen_node,
                /* it matches an empty strvec, no need to continue */
                if (ret == 0) {
                        child_parsed = ec_parsed_get_last_child(state);
-                       ec_parsed_del_child(state, child_parsed);
+                       ec_parsed_unlink_child(state, child_parsed);
                        ec_parsed_free(child_parsed);
                        break;
                }