aboutsummaryrefslogtreecommitdiff
path: root/sys/libbio/io/newick.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libbio/io/newick.c')
-rw-r--r--sys/libbio/io/newick.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/libbio/io/newick.c b/sys/libbio/io/newick.c
index 038b41c..f9be2d2 100644
--- a/sys/libbio/io/newick.c
+++ b/sys/libbio/io/newick.c
@@ -229,7 +229,7 @@ parse(struct Parser *p)
errorf("incorrect format: comment found in disallowed region");
goto ERROR;
}
- node->comment = str·new("");
+ node->comment = str·make("");
while (tok.kind != tok·rbrak) {
tok = lex_nospace(p->file, p->fimpl);
if (tok.kind == tok·eof || tok.kind == tok·nil) {
@@ -268,7 +268,7 @@ parse(struct Parser *p)
errorf("parse error: attempting to set name of nil node");
goto ERROR;
}
- node->name = str·new(tok.lit.s);
+ node->name = str·make(tok.lit.s);
} else {
if (p->tok.kind != tok·lparen && p->tok.kind != tok·comma) {
errorf("format error: misplaced identifier for leaf found");
@@ -282,7 +282,7 @@ parse(struct Parser *p)
node = p->heap.alloc(p->himpl, 1, sizeof(*node));
memset(node, 0, sizeof(*node));
- node->name = str·new(tok.lit.s);
+ node->name = str·make(tok.lit.s);
phylo·addchild(p->root, node);
}