From a35edc95cfef64acc57a1e221f0a62c2e6fcefa2 Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Fri, 21 May 2021 14:37:33 +0100 Subject: [PATCH] DEV9: Clang format DHCP_Server.cpp --- pcsx2/DEV9/InternalServers/DHCP_Server.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcsx2/DEV9/InternalServers/DHCP_Server.cpp b/pcsx2/DEV9/InternalServers/DHCP_Server.cpp index 53c09b27eb..0dddaa1deb 100644 --- a/pcsx2/DEV9/InternalServers/DHCP_Server.cpp +++ b/pcsx2/DEV9/InternalServers/DHCP_Server.cpp @@ -356,10 +356,12 @@ namespace InternalServers Console.Error("DHCP: RouterIP missmatch"); break; case 6: + // clang-format off if (((((DHCPopDNS*)dhcp.options[i])->dnsServers.size() == 0 && dns1.integer == 0) || (((DHCPopDNS*)dhcp.options[i])->dnsServers.size() == 1 && dns1.integer != 0 && dns2.integer == 0) || (((DHCPopDNS*)dhcp.options[i])->dnsServers.size() == 2 && dns2.integer != 0)) == false) Console.Error("DHCP: DNS count missmatch"); + // clang-format on if ((((DHCPopDNS*)dhcp.options[i])->dnsServers.size() > 0 && dns1 != ((DHCPopDNS*)dhcp.options[i])->dnsServers[0]) || (((DHCPopDNS*)dhcp.options[i])->dnsServers.size() > 1 && dns2 != ((DHCPopDNS*)dhcp.options[i])->dnsServers[1])) @@ -390,8 +392,8 @@ namespace InternalServers case 57: maxMs = ((DHCPopMMSGS*)(dhcp.options[i]))->maxMessageSize; break; - case 60: //ClassID - case 61: //ClientID + case 60: //ClassID + case 61: //ClientID case 255: //End break; default: