summaryrefslogtreecommitdiffstats
path: root/src/core/network
diff options
context:
space:
mode:
authorspholz <44805808+spholz@users.noreply.github.com>2021-08-16 12:06:35 +0200
committerspholz <44805808+spholz@users.noreply.github.com>2021-08-16 12:06:35 +0200
commitdc47b5a5bf1236c4ae4c1b48b14e59e013f3f6b0 (patch)
tree1de7a8d1eea688c2b1505a4c134d0d0df2250b84 /src/core/network
parentnetwork: retrieve subnet mask and gateway info (diff)
downloadyuzu-dc47b5a5bf1236c4ae4c1b48b14e59e013f3f6b0.tar
yuzu-dc47b5a5bf1236c4ae4c1b48b14e59e013f3f6b0.tar.gz
yuzu-dc47b5a5bf1236c4ae4c1b48b14e59e013f3f6b0.tar.bz2
yuzu-dc47b5a5bf1236c4ae4c1b48b14e59e013f3f6b0.tar.lz
yuzu-dc47b5a5bf1236c4ae4c1b48b14e59e013f3f6b0.tar.xz
yuzu-dc47b5a5bf1236c4ae4c1b48b14e59e013f3f6b0.tar.zst
yuzu-dc47b5a5bf1236c4ae4c1b48b14e59e013f3f6b0.zip
Diffstat (limited to 'src/core/network')
-rw-r--r--src/core/network/network_interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/network/network_interface.cpp b/src/core/network/network_interface.cpp
index b719da881..c60deb196 100644
--- a/src/core/network/network_interface.cpp
+++ b/src/core/network/network_interface.cpp
@@ -69,7 +69,7 @@ std::vector<NetworkInterface> GetAvailableNetworkInterfaces() {
continue;
}
- struct in_addr gateway = {0};
+ struct in_addr gateway{.S_un{.S_addr{0}}};
if (current_address->FirstGatewayAddress != nullptr &&
current_address->FirstGatewayAddress->Address.lpSockaddr != nullptr) {
gateway = Common::BitCast<struct sockaddr_in>(