summaryrefslogtreecommitdiff
path: root/other/DHT_bootstrap.c
diff options
context:
space:
mode:
authorKostya <kostyarjcnz@gmail.com>2013-08-30 03:28:50 -0400
committerKostya <kostyarjcnz@gmail.com>2013-08-30 03:28:50 -0400
commit25563ac07005448706d294dccdabf14fbe01d100 (patch)
tree2166609dfed18c1e4625c05ac0478220dd842d87 /other/DHT_bootstrap.c
parent790867d984841ba0e28c4100615590870895e7d4 (diff)
Fixed build errors.
Diffstat (limited to 'other/DHT_bootstrap.c')
-rw-r--r--other/DHT_bootstrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c
index 229e6593..e3a7397a 100644
--- a/other/DHT_bootstrap.c
+++ b/other/DHT_bootstrap.c
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
84 /* Initialize networking - 84 /* Initialize networking -
85 Bind to ip 0.0.0.0:PORT */ 85 Bind to ip 0.0.0.0:PORT */
86 IP ip; 86 IP ip;
87 ip.i = 0; 87 ip.uint32 = 0;
88 DHT *dht = new_DHT(new_net_crypto(new_networking(ip, PORT))); 88 DHT *dht = new_DHT(new_net_crypto(new_networking(ip, PORT)));
89 manage_keys(dht); 89 manage_keys(dht);
90 printf("Public key: "); 90 printf("Public key: ");
@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
111 if (argc > 3) { 111 if (argc > 3) {
112 printf("Trying to bootstrap into the network...\n"); 112 printf("Trying to bootstrap into the network...\n");
113 IP_Port bootstrap_info; 113 IP_Port bootstrap_info;
114 bootstrap_info.ip.i = inet_addr(argv[1]); 114 bootstrap_info.ip.uint32 = inet_addr(argv[1]);
115 bootstrap_info.port = htons(atoi(argv[2])); 115 bootstrap_info.port = htons(atoi(argv[2]));
116 uint8_t *bootstrap_key = hex_string_to_bin(argv[3]); 116 uint8_t *bootstrap_key = hex_string_to_bin(argv[3]);
117 DHT_bootstrap(dht, bootstrap_info, bootstrap_key); 117 DHT_bootstrap(dht, bootstrap_info, bootstrap_key);