From 30f71b562c32fe502b3ada9731c11f096aafdb72 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 16 Apr 2023 17:15:14 -0700 Subject: [PATCH] add -> try --- src/journal.re.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal.re.c b/src/journal.re.c index d241c86..66bc249 100644 --- a/src/journal.re.c +++ b/src/journal.re.c @@ -188,7 +188,7 @@ struct journal journal(void) { char *contents = 0; sprintf(fn, "%.2d.txt", *d); /* Reconstruct. */ if(!(contents = text_append_file(&j.backing, fn))) goto catch; - switch(day_tree_bulk_add(&j.days, d32, &v.text)) { + switch(day_tree_bulk_try(&j.days, d32, &v.text)) { case TREE_PRESENT: intent = "not unique", errno = EDOM; /*sic*/ case TREE_ERROR: goto catch; case TREE_ABSENT: break; /* Expected. */