From 38987f3f5a3919ac81ba419e05ac8610c269faff Mon Sep 17 00:00:00 2001 From: wrmr Date: Sat, 9 Nov 2024 02:04:33 -0500 Subject: rename buf_t to str_t, and consolidate str.c/h with strv.c/h --- nav.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nav.c') diff --git a/nav.c b/nav.c index 18b21db..8a520ac 100644 --- a/nav.c +++ b/nav.c @@ -100,7 +100,7 @@ void nav_redraw(struct nav_state *ns) { int nav_to(struct nav_state *ns, const char *url) { enum doc_type doct; struct addr adr; - buf_t buf; + str_t buf; if (net_addr(url, &adr, ns->prot_default)) { return -1; } @@ -110,11 +110,11 @@ int nav_to(struct nav_state *ns, const char *url) { } struct doc d; if (parse_doc(doct, &d, &buf)) { - buf_free(&buf); + str_free(&buf); return -1; } nav_push(ns, d); - buf_free(&buf); + str_free(&buf); nav_redraw(ns); return 0; } -- cgit 1.4.1-2-gfad0