diff options
author | irungentoo <irungentoo@gmail.com> | 2013-09-14 12:42:17 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-09-14 12:42:17 -0400 |
commit | 12d1c5199bd2feecd93424ff57f44fab4bbb02ad (patch) | |
tree | cd5a20e0c995199a383efd0a77ca0efb0033cfb6 /testing/DHT_test.c | |
parent | 64d000cdfaed710d3e22fa5444b8c2883b9f09d6 (diff) |
astyled everything.
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r-- | testing/DHT_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 9eab60de..d76057c1 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -141,6 +141,7 @@ int main(int argc, char *argv[]) | |||
141 | /* let user override default by cmdline */ | 141 | /* let user override default by cmdline */ |
142 | uint8_t ipv6enabled = TOX_ENABLE_IPV6_DEFAULT; /* x */ | 142 | uint8_t ipv6enabled = TOX_ENABLE_IPV6_DEFAULT; /* x */ |
143 | int argvoffset = cmdline_parsefor_ipv46(argc, argv, &ipv6enabled); | 143 | int argvoffset = cmdline_parsefor_ipv46(argc, argv, &ipv6enabled); |
144 | |||
144 | if (argvoffset < 0) | 145 | if (argvoffset < 0) |
145 | exit(1); | 146 | exit(1); |
146 | 147 | ||
@@ -177,6 +178,7 @@ int main(int argc, char *argv[]) | |||
177 | unsigned char *binary_string = hex_string_to_bin(argv[argvoffset + 3]); | 178 | unsigned char *binary_string = hex_string_to_bin(argv[argvoffset + 3]); |
178 | int res = DHT_bootstrap_from_address(dht, argv[argvoffset + 1], ipv6enabled, port, binary_string); | 179 | int res = DHT_bootstrap_from_address(dht, argv[argvoffset + 1], ipv6enabled, port, binary_string); |
179 | free(binary_string); | 180 | free(binary_string); |
181 | |||
180 | if (!res) { | 182 | if (!res) { |
181 | printf("Failed to convert \"%s\" into an IP address. Exiting...\n", argv[argvoffset + 1]); | 183 | printf("Failed to convert \"%s\" into an IP address. Exiting...\n", argv[argvoffset + 1]); |
182 | return 1; | 184 | return 1; |