aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-10-02 11:35:29 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-10-02 11:35:29 +0200
commit425a2e48c0f8266d5df0a1c2b40e3c176e40b283 (patch)
tree9ad4006515af9e3f75f3c54e374fd7d041c96e4e
parent33c632d11ee9438bb1e25c5ba720c6cf6037fe27 (diff)
Fix wrong function names on failure
-rw-r--r--auth.c2
-rw-r--r--page.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index 8190687..ec8c75c 100644
--- a/auth.c
+++ b/auth.c
@@ -337,7 +337,7 @@ int auth_login(const struct auth *const a, const char *const user,
if (res < 0)
{
- fprintf(stderr, "%s: generate_cookie failed\n", __func__);
+ fprintf(stderr, "%s: compare_pwd failed\n", __func__);
goto end;
}
else if (!res)
diff --git a/page.c b/page.c
index 1966200..2365b44 100644
--- a/page.c
+++ b/page.c
@@ -1041,7 +1041,7 @@ static int prepare_footer(struct html_node *const n)
}
else if (html_node_set_value_unescaped(footer, d.str))
{
- fprintf(stderr, "%s: html_node_add_child a failed\n", __func__);
+ fprintf(stderr, "%s: html_node_set_value_unescaped failed\n", __func__);
goto end;
}