diff options
author | sin <sin@2f30.org> | 2014-09-21 19:23:22 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-21 19:23:22 +0100 |
commit | 3b3effc32a2ba91444683266cf4ea061d5081ee2 (patch) | |
tree | f36d7b9dcb137dfff08275388c8f8b93a4571426 /ratox.c | |
parent | 770251566889c6ac9bbb54bbe49b4582c4d2e1a8 (diff) |
Update nodelist
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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; } |