From eef615fc9a9bdc4638443faca641fb1c0c0397a3 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Tue, 28 Mar 2023 02:28:58 +0000 Subject: [PATCH] Fix warnings in RouteChangePwd.c --- src/Routes/RouteChangePwd.c | 2 -- src/include/Routes.h | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Routes/RouteChangePwd.c b/src/Routes/RouteChangePwd.c index 8ae8c7a..e2d8d07 100644 --- a/src/Routes/RouteChangePwd.c +++ b/src/Routes/RouteChangePwd.c @@ -53,7 +53,6 @@ ROUTE_IMPL(RouteChangePwd, args) HashMap *request = NULL; HashMap *response = NULL; - HashMap *devices = NULL; JsonValue *val = NULL; @@ -64,7 +63,6 @@ ROUTE_IMPL(RouteChangePwd, args) char *token; char *newPassword; - char *key; if (MATRIX_PATH_PARTS(args->path) != 0 || HttpRequestMethodGet(args->context) != HTTP_POST) diff --git a/src/include/Routes.h b/src/include/Routes.h index cb5422b..2f6df73 100644 --- a/src/include/Routes.h +++ b/src/include/Routes.h @@ -65,8 +65,10 @@ ROUTE(RouteLogin); /* /_matrix/client/(r0|v3)/login */ ROUTE(RouteLogout); /* /_matrix/client/(r0|v3)/logout */ ROUTE(RouteRegister); /* /_matrix/client/(r0|v3)/register */ ROUTE(RouteRefresh); /* /_matrix/client/(r0|v3)/refresh */ -ROUTE(RouteWhoami); /* /_matrix/client/(r0|v3)/account/whoami */ -ROUTE(RouteChangePwd); /* /_matrix/client/(r0|v3)/account/password */ +ROUTE(RouteWhoami); /* /_matrix/client/(r0|v3)/account/wh + * oami */ +ROUTE(RouteChangePwd); /* /_matrix/client/(r0|v3)/account/pa + * ssword */ ROUTE(RouteTokenValid); /* /_matrix/client/v1/register/m.logi * n.registration_token/validity */