summaryrefslogtreecommitdiff
path: root/testing/DHT_test.c
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-09-11 20:50:15 +0200
committerCoren[m] <Break@Ocean>2013-09-11 20:50:15 +0200
commit513e37815db8319dd015bf03b588380a4e3c61d3 (patch)
tree809738c8ff2370936638565ff096d387d7222f85 /testing/DHT_test.c
parentd0f5ad34ae2cb88e921cf6f6d829d611b5ea2152 (diff)
tox.h, DHT.h:
- tox_bootstrap_ex(), DHT_bootstrap_ex() renamed to tox_bootstrap_from_address(), DHT_bootstrap_from_address() - (handle_)sendnodes_ex() renamed to (handle_)sendnodes_ipv6() - only sending sendnodes_ipv6() if we're actually IPv6 enabled - changed comments to conform better nTox.c, Messenger_text.c, DHT_test.c, DHT_bootstrap.c: - fallout from *_ex() to *_from_address() DHT_bootstrap.c: - corrected a potentially wrong info message util.c: - fixed logfile name: now (funcptr) => now() (number) network.c: - addead comment about the necessity of bind() to succeed auto_test/messenger_test.c: - defaulting ipv6enabled to TOX_ENABLE_IPV6_DEFAULT LAN_discovery.c: - slight cleanup and comments for clarity
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r--testing/DHT_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index ba8c2f23..9eab60de 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -175,7 +175,7 @@ int main(int argc, char *argv[])
175 175
176 uint16_t port = htons(atoi(argv[argvoffset + 2])); 176 uint16_t port = htons(atoi(argv[argvoffset + 2]));
177 unsigned char *binary_string = hex_string_to_bin(argv[argvoffset + 3]); 177 unsigned char *binary_string = hex_string_to_bin(argv[argvoffset + 3]);
178 int res = DHT_bootstrap_ex(dht, argv[argvoffset + 1], ipv6enabled, port, binary_string); 178 int res = DHT_bootstrap_from_address(dht, argv[argvoffset + 1], ipv6enabled, port, binary_string);
179 free(binary_string); 179 free(binary_string);
180 if (!res) { 180 if (!res) {
181 printf("Failed to convert \"%s\" into an IP address. Exiting...\n", argv[argvoffset + 1]); 181 printf("Failed to convert \"%s\" into an IP address. Exiting...\n", argv[argvoffset + 1]);