]> gitweb.ps.run Git - matrix_esp_thesis/blobdiff - src/matrix.c
mongoose as http client
[matrix_esp_thesis] / src / matrix.c
index 90132af5f8a9b81c8a3dc755b6d5b1a12c7d63cd..790f0f572e77e446cbe56f86b64cb338ad378d44 100644 (file)
@@ -1,5 +1,6 @@
 #include "matrix.h"\r
 \r
+#include <stdio.h>\r
 #include <mjson.h>\r
 \r
 \r
@@ -11,8 +12,8 @@
 bool\r
 MatrixClientInit(\r
     MatrixClient * client,\r
-    char * server, int serverLen\r
-{\r
+    char * server, int serverLen)\r
+{\r
     strcpy_s(\r
         client->server,\r
         SERVER_SIZE,\r
@@ -29,8 +30,8 @@ MatrixClientLoginPassword(
     MatrixClient * client,\r
     char * username, int usernameLen,\r
     char * password, int passwordLen,\r
-    char * displayName, int displayNameLen\r
-{\r
+    char * displayName, int displayNameLen)\r
+{\r
     static char requestBuffer[LOGIN_REQUEST_SIZE];\r
 \r
     int requestLen =\r