From 12d1c5199bd2feecd93424ff57f44fab4bbb02ad Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 14 Sep 2013 12:42:17 -0400 Subject: astyled everything. --- other/DHT_bootstrap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'other/DHT_bootstrap.c') diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index 246ae818..484a511c 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c @@ -94,6 +94,7 @@ int main(int argc, char *argv[]) /* let user override default by cmdline */ uint8_t ipv6enabled = TOX_ENABLE_IPV6_DEFAULT; /* x */ int argvoffset = cmdline_parsefor_ipv46(argc, argv, &ipv6enabled); + if (argvoffset < 0) exit(1); @@ -130,7 +131,7 @@ int main(int argc, char *argv[]) uint16_t port = htons(atoi(argv[argvoffset + 2])); uint8_t *bootstrap_key = hex_string_to_bin(argv[argvoffset + 3]); int res = DHT_bootstrap_from_address(dht, argv[argvoffset + 1], - ipv6enabled, port, bootstrap_key); + ipv6enabled, port, bootstrap_key); free(bootstrap_key); if (!res) { @@ -151,6 +152,7 @@ int main(int argc, char *argv[]) } do_DHT(dht); + if (last_LANdiscovery + (is_waiting_for_dht_connection ? 5 : LAN_DISCOVERY_INTERVAL) < unix_time()) { send_LANdiscovery(htons(PORT), dht->c); last_LANdiscovery = unix_time(); -- cgit v1.2.3