From e0b6e7c8bb151f08e157c0151f8460946ecb82f0 Mon Sep 17 00:00:00 2001 From: Sebastian Stal Date: Sat, 20 Jul 2013 12:01:19 -0700 Subject: [PATCH] Fix sign on function --- testing/nTox.c | 4 ++-- 1 file 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[]) return val; } -unsigned int resolve_dnsaddr(char *address, char *port) +int resolve_dnsaddr(char *address, char *port) { in_addr_t resolved = 0; resolved = inet_addr(address); @@ -270,7 +270,7 @@ int main(int argc, char *argv[]) strcpy(line, ""); IP_Port bootstrap_ip_port; bootstrap_ip_port.port = htons(atoi(argv[2])); - unsigned int resolved_address = resolve_dnsaddr(argv[1], argv[2]); + int resolved_address = resolve_dnsaddr(argv[1], argv[2]); if (resolved_address != -1) { bootstrap_ip_port.ip.i = resolved_address; } else {