Explorar el Código

network_interface: correct formatting

Sönke Holz hace 5 años
padre
commit
356dbf4d1d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/network/network_interface.cpp

+ 1 - 1
src/core/network/network_interface.cpp

@@ -69,7 +69,7 @@ std::vector<NetworkInterface> GetAvailableNetworkInterfaces() {
                 continue;
             }
 
-            struct in_addr gateway{.S_un{.S_addr{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>(