summaryrefslogtreecommitdiff
path: root/testing/nTox.c
diff options
context:
space:
mode:
authorSebastian Stal <stal@pyboard.net>2013-07-20 12:01:19 -0700
committerSebastian Stal <stal@pyboard.net>2013-07-20 12:01:19 -0700
commite0b6e7c8bb151f08e157c0151f8460946ecb82f0 (patch)
tree91575a98d060ad5a43b392d043898b220bcb84f6 /testing/nTox.c
parent497329aeab9778b57dfa8d424d2e6142d164c3bb (diff)
Fix sign on function
Diffstat (limited to 'testing/nTox.c')
-rw-r--r--testing/nTox.c4
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
38unsigned int resolve_dnsaddr(char *address, char *port) 38int 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 {