From 261f365e55d4711372f7053667aa368788eabea1 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Mon, 29 Jul 2013 20:47:12 -0400 Subject: Fixed function signature --- core/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/network.c') diff --git a/core/network.c b/core/network.c index aa16bda9..ced08207 100644 --- a/core/network.c +++ b/core/network.c @@ -169,7 +169,7 @@ void shutdown_networking() address should represent IPv4, IPv6 or a hostname on success returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i on failure returns -1 */ -int resolve_addr(char *address) +int resolve_addr(const char *address) { struct addrinfo hints; memset(&hints, 0, sizeof(hints)); -- cgit v1.2.3 From de7ebc55b1ee31d252160eed88d743c8ef45320b Mon Sep 17 00:00:00 2001 From: Erik Price Date: Mon, 29 Jul 2013 21:32:27 -0400 Subject: Replace magic value "7" with string "echo" --- core/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/network.c') diff --git a/core/network.c b/core/network.c index aa16bda9..3cd53ef7 100644 --- a/core/network.c +++ b/core/network.c @@ -178,7 +178,7 @@ int resolve_addr(char *address) struct addrinfo *server = NULL; - int success = getaddrinfo(address, "7", &hints, &server); + int success = getaddrinfo(address, "echo", &hints, &server); if(success != 0) return -1; -- cgit v1.2.3