From 3b3effc32a2ba91444683266cf4ea061d5081ee2 Mon Sep 17 00:00:00 2001 From: sin Date: Sun, 21 Sep 2014 19:23:22 +0100 Subject: Update nodelist --- ratox.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index 27cd6f9..84f2291 100644 --- a/ratox.c +++ b/ratox.c @@ -37,9 +37,9 @@ const char *reqerr[] = { }; struct node { - const char *addr; + char *addr; uint16_t port; - uint8_t key[TOX_CLIENT_ID_SIZE]; + char *idstr; }; #include "config.h" @@ -736,12 +736,14 @@ toxinit(void) static int toxconnect(void) { - struct node *bn; + struct node *n; + uint8_t id[TOX_CLIENT_ID_SIZE]; size_t i; for (i = 0; i < LEN(nodes); i++) { - bn = &nodes[i]; - tox_bootstrap_from_address(tox, bn->addr, bn->port, bn->key); + n = &nodes[i]; + str2id(n->idstr, id); + tox_bootstrap_from_address(tox, n->addr, n->port, id); } return 0; } -- cgit v1.2.3