diff options
-rw-r--r-- | testing/nTox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index b117dbae..5fdbfd21 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -35,7 +35,7 @@ unsigned char * hex_string_to_bin(char hex_string[]) | |||
35 | return val; | 35 | return val; |
36 | } | 36 | } |
37 | 37 | ||
38 | unsigned int resolve_dnsaddr(char *address, char *port) | 38 | int resolve_dnsaddr(char *address, char *port) |
39 | { | 39 | { |
40 | in_addr_t resolved = 0; | 40 | in_addr_t resolved = 0; |
41 | resolved = inet_addr(address); | 41 | resolved = inet_addr(address); |
@@ -270,7 +270,7 @@ int main(int argc, char *argv[]) | |||
270 | strcpy(line, ""); | 270 | strcpy(line, ""); |
271 | IP_Port bootstrap_ip_port; | 271 | IP_Port bootstrap_ip_port; |
272 | bootstrap_ip_port.port = htons(atoi(argv[2])); | 272 | bootstrap_ip_port.port = htons(atoi(argv[2])); |
273 | unsigned int resolved_address = resolve_dnsaddr(argv[1], argv[2]); | 273 | int resolved_address = resolve_dnsaddr(argv[1], argv[2]); |
274 | if (resolved_address != -1) { | 274 | if (resolved_address != -1) { |
275 | bootstrap_ip_port.ip.i = resolved_address; | 275 | bootstrap_ip_port.ip.i = resolved_address; |
276 | } else { | 276 | } else { |