sources/network/ipaddress.cpp

changeset 19
2046a1651c0b
parent 10
3874575d924d
child 24
e651d02802c0
--- a/sources/network/ipaddress.cpp	Sun Dec 14 19:42:43 2014 +0200
+++ b/sources/network/ipaddress.cpp	Sun Dec 14 19:51:23 2014 +0200
@@ -173,8 +173,8 @@
 STATIC METHOD
 IPAddress::resolve (String node, bool* ok) -> IPAddress
 {
-	struct addrinfo hints;
-	struct addrinfo* lookup;
+	addrinfo hints;
+	addrinfo* lookup;
 	memset (&hints, 0, sizeof hints);
 	hints.ai_family = AF_INET;
 
@@ -186,7 +186,7 @@
 
 	IPAddress result;
 	assert (lookup != nullptr);
-	sockaddr_in* addr = reinterpret_cast<struct sockaddr_in*> (lookup[0].ai_addr);
+	sockaddr_in* addr = reinterpret_cast<sockaddr_in*> (lookup[0].ai_addr);
 	result.host = ntohl (addr->sin_addr.s_addr);
 	result.port = ntohs (addr->sin_port);
 	freeaddrinfo (lookup);

mercurial