From 5ff792104a0749588270cb151ef7cd2c6cbe353a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 24 Jun 2018 19:02:41 +0300 Subject: minor code cleaning --- plugins/ProxySwitch/src/ip.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/ProxySwitch/src') diff --git a/plugins/ProxySwitch/src/ip.cpp b/plugins/ProxySwitch/src/ip.cpp index 9040d1986a..87c5962433 100644 --- a/plugins/ProxySwitch/src/ip.cpp +++ b/plugins/ProxySwitch/src/ip.cpp @@ -289,7 +289,7 @@ int Create_NIF_List(NETWORK_INTERFACE_LIST *list) for (auto &it : g_arConnections) { NETWORK_INTERFACE* nif = Find_NIF_IP(*list, it->IP); if (nif) - nif->Bound = 1; + nif->Bound = true; } return 0; @@ -325,7 +325,7 @@ int IncUpdate_NIF_List(NETWORK_INTERFACE_LIST *trg, NETWORK_INTERFACE_LIST &src) NETWORK_INTERFACE *nif = Find_NIF_AdapterName(*trg, it->AdapterName); if (nif) { if (nif->Disabled) - nif->Disabled = 0; + nif->Disabled = false; if (mir_strcmp(NVL(nif->IPstr), NVL(it->IPstr))) { if (nif->IPstr) mir_free(nif->IPstr); @@ -384,7 +384,7 @@ int IncUpdate_NIF_List(NETWORK_INTERFACE_LIST *trg, NETWORK_INTERFACE_LIST &src) } } - for (auto *it : *trg) { + for (auto &it : *trg) { if (it->Disabled) continue; @@ -404,8 +404,8 @@ int IncUpdate_NIF_List(NETWORK_INTERFACE_LIST *trg, NETWORK_INTERFACE_LIST &src) it->IPstr = NULL; it->IPcount = 0; it->IP = NULL; - it->Bound = FALSE; - it->Disabled = 1; + it->Bound = false; + it->Disabled = true; } } return change; -- cgit v1.2.3