summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-21 19:23:22 +0100
committersin <sin@2f30.org>2014-09-21 19:23:22 +0100
commit3b3effc32a2ba91444683266cf4ea061d5081ee2 (patch)
treef36d7b9dcb137dfff08275388c8f8b93a4571426 /ratox.c
parent770251566889c6ac9bbb54bbe49b4582c4d2e1a8 (diff)
Update nodelist
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c12
1 files changed, 7 insertions, 5 deletions
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;
}