summaryrefslogtreecommitdiffstats
path: root/src/core/network
diff options
context:
space:
mode:
authorSönke Holz <sholz8530@gmail.com>2021-08-13 01:28:14 +0200
committerSönke Holz <sholz8530@gmail.com>2021-08-13 01:28:14 +0200
commita0c4c1a23adb3645e1d225644ab5e0e7aea513ad (patch)
treed48353b735c91a5be927a7fc247672c9e802d30c /src/core/network
parentnetwork: narrow down scope of "result" in win32 code for (diff)
downloadyuzu-a0c4c1a23adb3645e1d225644ab5e0e7aea513ad.tar
yuzu-a0c4c1a23adb3645e1d225644ab5e0e7aea513ad.tar.gz
yuzu-a0c4c1a23adb3645e1d225644ab5e0e7aea513ad.tar.bz2
yuzu-a0c4c1a23adb3645e1d225644ab5e0e7aea513ad.tar.lz
yuzu-a0c4c1a23adb3645e1d225644ab5e0e7aea513ad.tar.xz
yuzu-a0c4c1a23adb3645e1d225644ab5e0e7aea513ad.tar.zst
yuzu-a0c4c1a23adb3645e1d225644ab5e0e7aea513ad.zip
Diffstat (limited to 'src/core/network')
-rw-r--r--src/core/network/network_interface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/network/network_interface.cpp b/src/core/network/network_interface.cpp
index 34e20f547..e9060f13f 100644
--- a/src/core/network/network_interface.cpp
+++ b/src/core/network/network_interface.cpp
@@ -4,6 +4,7 @@
#include <vector>
+#include "common/bit_cast.h"
#include "common/common_types.h"
#include "common/logging/log.h"
#include "common/string_util.h"
@@ -55,7 +56,7 @@ std::vector<NetworkInterface> GetAvailableNetworkInterfaces() {
continue;
}
- const auto ip_addr = std::bit_cast<struct sockaddr_in>(
+ const auto ip_addr = Common::BitCast<struct sockaddr_in>(
*current_address->FirstUnicastAddress->Address.lpSockaddr)
.sin_addr;
@@ -99,7 +100,7 @@ std::vector<NetworkInterface> GetAvailableNetworkInterfaces() {
result.push_back(NetworkInterface{
.name{ifa->ifa_name},
- .ip_address{std::bit_cast<struct sockaddr_in>(*ifa->ifa_addr).sin_addr}});
+ .ip_address{Common::BitCast<struct sockaddr_in>(*ifa->ifa_addr).sin_addr}});
}
freeifaddrs(ifaddr);