diff options
| author | Patrick | 2023-11-13 21:09:43 +0100 |
|---|---|---|
| committer | Patrick | 2023-11-13 21:09:43 +0100 |
| commit | 760426d17bc296232b9fedf7e114cb699e2697ae (patch) | |
| tree | 613d79a87d4c7b4ec975463a2b8fdeb29dc53092 /examples/Login.c | |
| parent | 0b5fc6b640af6f13fe56a6e77598d96db78bb56c (diff) | |
| download | matrix_esp_thesis-760426d17bc296232b9fedf7e114cb699e2697ae.tar.gz matrix_esp_thesis-760426d17bc296232b9fedf7e114cb699e2697ae.zip | |
fix examples
Diffstat (limited to 'examples/Login.c')
| -rw-r--r-- | examples/Login.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/Login.c b/examples/Login.c index 1ffbbc0..08f981a 100644 --- a/examples/Login.c +++ b/examples/Login.c @@ -11,10 +11,9 @@ int main(void)
{
MatrixClient client;
- MatrixClientInit(&client,
- SERVER);
+ MatrixClientInit(&client);
- MatrixHttpInit(&client);
+ MatrixHttpInit(&client.hc, SERVER);
MatrixClientLoginPassword(&client,
USERNAME,
@@ -26,7 +25,7 @@ main(void) printf("Expires in (ms): %s\n", client.expireMs);
printf("Refresh Token: %s\n", client.refreshToken);
- MatrixHttpDeinit(&client);
+ MatrixHttpDeinit(&client.hc);
return 0;
-}
\ No newline at end of file +}
|
