summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/test.c b/test.c
index 9766e8f..305fa2b 100644
--- a/test.c
+++ b/test.c
@@ -3,15 +3,17 @@
#include <stdio.h>
int main(int argc, char **argv) {
- struct ClientOptions opts;
- opts.host = "192.168.0.2";
- opts.port = 9091;
- opts.https = false;
- opts.user = NULL;
- opts.passowrd = NULL;
+ struct ClientOptions opts = {
+ .host = "192.168.0.2",
+ .port = 9091,
+ .https = false,
+ NULL,
+ NULL,
+ };
c_client client = c_client_init(opts);
- c_torrent_get(client);
+ char *foo = c_torrent_get(client);
+ printf("%s\n", foo);
c_client_deinit(client);
return 0;
}