aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;