summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-02-06 13:44:44 +0100
committerDavid Lönnhager <david.l@mullvad.net>2020-02-07 13:01:26 +0100
commitd9f11a8f12e5f6843285f98c0edcbf22b8caa451 (patch)
tree92cb0aa506ae3b4c6cd66442cab6ba1da89a8582
parent81772b01cd7cabeef9435bb5c39df67b3d63f4bb (diff)
downloadmullvadvpn-d9f11a8f12e5f6843285f98c0edcbf22b8caa451.tar.xz
mullvadvpn-d9f11a8f12e5f6843285f98c0edcbf22b8caa451.zip
Fix indentation
-rw-r--r--windows/winnet/src/winnet/InterfacePair.cpp26
-rw-r--r--windows/winnet/src/winnet/InterfacePair.h2
2 files changed, 14 insertions, 14 deletions
diff --git a/windows/winnet/src/winnet/InterfacePair.cpp b/windows/winnet/src/winnet/InterfacePair.cpp
index b48d3ec6ae..6046bd32b7 100644
--- a/windows/winnet/src/winnet/InterfacePair.cpp
+++ b/windows/winnet/src/winnet/InterfacePair.cpp
@@ -41,36 +41,36 @@ int InterfacePair::BestMetric()
void InterfacePair::SetMetric(unsigned int metric)
{
if (HasIPv4() && (IPv4Iface.UseAutomaticMetric || metric != IPv4Iface.Metric))
- {
+ {
IPv4Iface.SitePrefixLength = 0;
IPv4Iface.Metric = metric;
IPv4Iface.UseAutomaticMetric = false;
- SetInterface(&IPv4Iface);
+ SetInterface(&IPv4Iface);
}
if (HasIPv6() && (IPv6Iface.UseAutomaticMetric || metric != IPv6Iface.Metric))
- {
+ {
IPv6Iface.Metric = metric;
IPv6Iface.UseAutomaticMetric = false;
- SetInterface(&IPv6Iface);
+ SetInterface(&IPv6Iface);
}
}
void InterfacePair::SetInterface(PMIB_IPINTERFACE_ROW iface) {
- const auto status = SetIpInterfaceEntry(iface);
+ const auto status = SetIpInterfaceEntry(iface);
- if (status != NO_ERROR)
- {
- std::stringstream ss;
+ if (status != NO_ERROR)
+ {
+ std::stringstream ss;
- ss << "Set metric for "
+ ss << "Set metric for "
<< (iface->Family == AF_INET ? "IPv4" : "IPv6")
- << " on interface with LUID 0x"
- << std::hex << iface->InterfaceLuid.Value;
+ << " on interface with LUID 0x"
+ << std::hex << iface->InterfaceLuid.Value;
- THROW_WINDOWS_ERROR(status, ss.str().c_str());
- }
+ THROW_WINDOWS_ERROR(status, ss.str().c_str());
+ }
}
bool InterfacePair::HasIPv4()
diff --git a/windows/winnet/src/winnet/InterfacePair.h b/windows/winnet/src/winnet/InterfacePair.h
index f574ac2845..0a5071e4a7 100644
--- a/windows/winnet/src/winnet/InterfacePair.h
+++ b/windows/winnet/src/winnet/InterfacePair.h
@@ -21,6 +21,6 @@ private:
static void InitializeInterface(PMIB_IPINTERFACE_ROW iface);
bool HasIPv4();
bool HasIPv6();
- void SetInterface(PMIB_IPINTERFACE_ROW iface);
+ void SetInterface(PMIB_IPINTERFACE_ROW iface);
};