diff options
author | Sönke Holz <sholz8530@gmail.com> | 2021-08-13 11:23:50 +0200 |
---|---|---|
committer | Sönke Holz <sholz8530@gmail.com> | 2021-08-13 11:23:50 +0200 |
commit | e660334a21a697754f3a9859da5e32c327a7d3e3 (patch) | |
tree | b5c778bcd57367c05ae7dd010ce5884180738e07 /src | |
parent | network: don't use assert to check if no network interfaces are returned (diff) | |
download | yuzu-e660334a21a697754f3a9859da5e32c327a7d3e3.tar yuzu-e660334a21a697754f3a9859da5e32c327a7d3e3.tar.gz yuzu-e660334a21a697754f3a9859da5e32c327a7d3e3.tar.bz2 yuzu-e660334a21a697754f3a9859da5e32c327a7d3e3.tar.lz yuzu-e660334a21a697754f3a9859da5e32c327a7d3e3.tar.xz yuzu-e660334a21a697754f3a9859da5e32c327a7d3e3.tar.zst yuzu-e660334a21a697754f3a9859da5e32c327a7d3e3.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/network/network.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp index 4669130ee..71583159a 100644 --- a/src/core/network/network.cpp +++ b/src/core/network/network.cpp @@ -368,10 +368,10 @@ std::optional<IPv4Address> GetHostIPv4Address() { return {}; } - const auto res = std::ranges::find_if(network_interfaces, - [&selected_network_interface](const auto& interface) { - return interface.name == selected_network_interface; - }); + const auto res = + std::ranges::find_if(network_interfaces, [&selected_network_interface](const auto& iface) { + return iface.name == selected_network_interface; + }); if (res != network_interfaces.end()) { char ip_addr[16] = {}; |