From 33c632d11ee9438bb1e25c5ba720c6cf6037fe27 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 2 Oct 2025 11:35:16 +0200 Subject: auth.c: Remove unused arguments --- auth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'auth.c') 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; -- cgit v1.2.3