aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/ip_unix.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli2016-12-01 06:34:05 +0100
committerFabio Alessandrelli2016-12-09 18:24:59 +0100
commitc18c5013f837ea7d4de2f022d36f84e0abce6439 (patch)
treef21627a04256241523f6ca10d848cf89fd5fd12b /drivers/unix/ip_unix.cpp
parent4d90a4fcd5fcdca42df47062f94a1fa4e5635a94 (diff)
downloadgodot-c18c5013f837ea7d4de2f022d36f84e0abce6439.tar.gz
godot-c18c5013f837ea7d4de2f022d36f84e0abce6439.tar.zst
godot-c18c5013f837ea7d4de2f022d36f84e0abce6439.zip
Diffstat (limited to 'drivers/unix/ip_unix.cpp')
-rw-r--r--drivers/unix/ip_unix.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/unix/ip_unix.cpp b/drivers/unix/ip_unix.cpp
index 8b8e09c91..ad49d0dca 100644
--- a/drivers/unix/ip_unix.cpp
+++ b/drivers/unix/ip_unix.cpp
@@ -87,15 +87,15 @@ static IP_Address _sockaddr2ip(struct sockaddr* p_addr) {
return ip;
};
-IP_Address IP_Unix::_resolve_hostname(const String& p_hostname, IP_Address::AddrType p_type) {
+IP_Address IP_Unix::_resolve_hostname(const String& p_hostname, Type p_type) {
struct addrinfo hints;
struct addrinfo* result;
memset(&hints, 0, sizeof(struct addrinfo));
- if (p_type == IP_Address::TYPE_IPV4) {
+ if (p_type == TYPE_IPV4) {
hints.ai_family = AF_INET;
- } else if (p_type == IP_Address::TYPE_IPV6) {
+ } else if (p_type == TYPE_IPV6) {
hints.ai_family = AF_INET6;
hints.ai_flags = 0;
} else {