abouttreesummaryrefslogcommitdiff
path: root/examples/ReplyRoomkey.c
diff options
context:
space:
mode:
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;
}