summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-15 17:37:17 +0100
committersin <sin@2f30.org>2014-09-15 17:37:17 +0100
commit240c26e52840a5422ee838957fb0d31286395a65 (patch)
tree417280bd3c3394a6e127dff69e1fe783a1753045
parentb58afafbe3e55386bb6f1a339fa117d872cd8602 (diff)
Rename bootstrapnode to node
-rw-r--r--config.def.h2
-rw-r--r--ratatox.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h
index c2e9dcc..242cc34 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,6 +1,6 @@
/* See LICENSE file for copyright and license details. */
-static struct bootstrapnode bootstrapnodes[] = {
+static struct node nodes[] = {
{
"95.85.13.245",
33445,
diff --git a/ratatox.c b/ratatox.c
index 87b2b47..aa107cf 100644
--- a/ratatox.c
+++ b/ratatox.c
@@ -23,7 +23,7 @@
#define LEN(x) (sizeof (x) / sizeof *(x))
#define DATAFILE "ratatox.data"
-struct bootstrapnode {
+struct node {
const char *addr;
uint16_t port;
uint8_t key[TOX_CLIENT_ID_SIZE];
@@ -438,11 +438,11 @@ toxinit(void)
static int
toxconnect(void)
{
- struct bootstrapnode *bn;
+ struct node *bn;
size_t i;
- for (i = 0; i < LEN(bootstrapnodes); i++) {
- bn = &bootstrapnodes[i];
+ for (i = 0; i < LEN(nodes); i++) {
+ bn = &nodes[i];
tox_bootstrap_from_address(tox, bn->addr, bn->port, bn->key);
}
return 0;