abouttreesummaryrefslogcommitdiff
path: root/examples/ReplyRoomkey.c
diff options
context:
space:
mode:
authorPatrick2023-11-13 21:09:43 +0100
committerPatrick2023-11-13 21:09:43 +0100
commit760426d17bc296232b9fedf7e114cb699e2697ae (patch)
tree613d79a87d4c7b4ec975463a2b8fdeb29dc53092 /examples/ReplyRoomkey.c
parent0b5fc6b640af6f13fe56a6e77598d96db78bb56c (diff)
downloadmatrix_esp_thesis-760426d17bc296232b9fedf7e114cb699e2697ae.tar.gz
matrix_esp_thesis-760426d17bc296232b9fedf7e114cb699e2697ae.zip
fix examples
Diffstat (limited to 'examples/ReplyRoomkey.c')
-rw-r--r--examples/ReplyRoomkey.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/ReplyRoomkey.c b/examples/ReplyRoomkey.c
index 8d61a4c..7cc506e 100644
--- a/examples/ReplyRoomkey.c
+++ b/examples/ReplyRoomkey.c
@@ -11,10 +11,9 @@ int
main(void)
{
MatrixClient client;
- MatrixClientInit(&client,
- SERVER);
+ MatrixClientInit(&client);
- MatrixHttpInit(&client);
+ MatrixHttpInit(&client.hc, SERVER);
MatrixClientSetAccessToken(&client,
ACCESS_TOKEN);
@@ -34,7 +33,7 @@ main(void)
"ULZZOKJBYN",
&client.megolmOutSessions[0]);
- MatrixHttpDeinit(&client);
+ MatrixHttpDeinit(&client.hc);
return 0;
}