aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-10-02 11:35:16 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-10-02 11:35:16 +0200
commit33c632d11ee9438bb1e25c5ba720c6cf6037fe27 (patch)
tree4640d7aa01a16d309e57abd6e9787026b421dc93
parent4dcd4d47cc717b37844dbe7f01485f9a0662a964 (diff)
auth.c: Remove unused arguments
-rw-r--r--auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth.c b/auth.c
index 790267a..8190687 100644
--- a/auth.c
+++ b/auth.c
@@ -165,8 +165,8 @@ end:
return ret;
}
-static int generate_cookie(const cJSON *const json, const char *const path,
- const char *const name, const char *const key, char **const cookie)
+static int generate_cookie(const char *const name, const char *const key,
+ char **const cookie)
{
unsigned char dkey[KEYLEN];
int ret = -1;
@@ -342,7 +342,7 @@ int auth_login(const struct auth *const a, const char *const user,
}
else if (!res)
{
- if (generate_cookie(json, path, name, key, cookie))
+ if (generate_cookie(name, key, cookie))
{
fprintf(stderr, "%s: generate_cookie failed\n", __func__);
goto end;