summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Sönke Holz2021-08-13 00:31:33 +0200
committerGravatar Sönke Holz2021-08-13 00:31:33 +0200
commit771de32af16f70d63c76f2f95698be7751374c4c (patch)
tree251a1e8c5770ae96b2c2dbb78c0afaf4999d8edd /src
parentnetwork: initialize ip_addr in GetHostIPv4Address() (diff)
downloadyuzu-771de32af16f70d63c76f2f95698be7751374c4c.tar.gz
yuzu-771de32af16f70d63c76f2f95698be7751374c4c.tar.xz
yuzu-771de32af16f70d63c76f2f95698be7751374c4c.zip
network: use explicit bool conversions in GetAvailableNetworkInterfaces
Diffstat (limited to 'src')
-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 2b53682ea..887aee708 100644
--- a/src/core/network/network_interface.cpp
+++ b/src/core/network/network_interface.cpp
@@ -92,7 +92,7 @@ std::vector<NetworkInterface> GetAvailableNetworkInterfaces() {
92 continue; 92 continue;
93 } 93 }
94 94
95 if (!(ifa->ifa_flags & IFF_UP) || ifa->ifa_flags & IFF_LOOPBACK) { 95 if ((ifa->ifa_flags & IFF_UP) == 0 || (ifa->ifa_flags & IFF_LOOPBACK) != 0) {
96 continue; 96 continue;
97 } 97 }
98 98