summaryrefslogtreecommitdiff
path: root/other
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
parent790867d984841ba0e28c4100615590870895e7d4 (diff)
Fixed build errors.
Diffstat (limited to 'other')
-rw-r--r--other/DHT_bootstrap.c4
-rw-r--r--other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c4
2 files changed, 4 insertions, 4 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);
diff --git a/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c b/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c
index 0f39285b..4e90e345 100644
--- a/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c
+++ b/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c
@@ -301,7 +301,7 @@ struct server_conf_s configure_server(char *cfg_file)
301 printf("bootstrap_server %d: Invalid port.\n", i); 301 printf("bootstrap_server %d: Invalid port.\n", i);
302 } 302 }
303 303
304 server_conf.info[i].conn.ip.i = resolve_addr(strcpy(tmp_ip, bs_ip)); 304 server_conf.info[i].conn.ip.uint32 = resolve_addr(strcpy(tmp_ip, bs_ip));
305 server_conf.info[i].conn.port = htons(bs_port); 305 server_conf.info[i].conn.port = htons(bs_port);
306 b16_to_key(strcpy(tmp_pk, bs_pk), bs_pk_p); 306 b16_to_key(strcpy(tmp_pk, bs_pk), bs_pk_p);
307 } 307 }
@@ -340,7 +340,7 @@ int main(int argc, char *argv[])
340 /* Initialize networking 340 /* Initialize networking
341 bind to ip 0.0.0.0:PORT */ 341 bind to ip 0.0.0.0:PORT */
342 IP ip; 342 IP ip;
343 ip.i = 0; 343 ip.uint32 = 0;
344 DHT *dht = new_DHT(new_net_crypto(new_networking(ip, server_conf.port))); 344 DHT *dht = new_DHT(new_net_crypto(new_networking(ip, server_conf.port)));
345 /* Read the config file */ 345 /* Read the config file */
346 printf("PID file: %s\n", server_conf.pid_file); 346 printf("PID file: %s\n", server_conf.pid_file);