Remove unnecessary semicolons from namespace blocks

This commit is contained in:
Sijmen 2020-12-28 14:18:47 +01:00
parent 4059e4be88
commit de644dc035
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48
9 changed files with 14 additions and 11 deletions

View file

@ -101,8 +101,11 @@ namespace Net::Arp
} }
void SendReply( void SendReply(
Utils::MacAddress targetMac, Utils::MacAddress senderMac, uint32_t targetIp, uint32_t senderIp) Utils::MacAddress targetMac,
{ Utils::MacAddress senderMac,
uint32_t targetIp,
uint32_t senderIp
) {
SendPacket(ARP_OPERATION_REPLY, targetMac, senderMac, targetIp, senderIp); SendPacket(ARP_OPERATION_REPLY, targetMac, senderMac, targetIp, senderIp);
} }
@ -143,4 +146,4 @@ namespace Net::Arp
} }
std::unordered_map<uint32_t, Utils::MacAddress> ArpTable; std::unordered_map<uint32_t, Utils::MacAddress> ArpTable;
}; // namespace Net::Arp } // namespace Net::Arp

View file

@ -73,4 +73,4 @@ namespace Net::Arp
void SendAnnouncement(Utils::MacAddress mac, uint32_t ip); void SendAnnouncement(Utils::MacAddress mac, uint32_t ip);
extern std::unordered_map<uint32_t, Utils::MacAddress> ArpTable; extern std::unordered_map<uint32_t, Utils::MacAddress> ArpTable;
}; // namespace Net::Arp } // namespace Net::Arp

View file

@ -52,4 +52,4 @@ namespace Net::Ethernet
self.type = buffer[12] << 8 | buffer[13]; self.type = buffer[12] << 8 | buffer[13];
return self; return self;
} }
}; // namespace Net::Ethernet } // namespace Net::Ethernet

View file

@ -31,4 +31,4 @@ namespace Net::Ethernet
size_t Serialize(uint8_t* buffer) const; size_t Serialize(uint8_t* buffer) const;
static Header Deserialize(const uint8_t* buffer); static Header Deserialize(const uint8_t* buffer);
}; };
}; // namespace Net::Ethernet } // namespace Net::Ethernet

View file

@ -306,4 +306,4 @@ namespace Net::Tftp
out.data = std::vector<uint8_t>(buffer + 4, buffer + size); out.data = std::vector<uint8_t>(buffer + 4, buffer + size);
return size; return size;
} }
}; // namespace Net::Tftp } // namespace Net::Tftp

View file

@ -81,4 +81,4 @@ namespace Net::Tftp
const Udp::Header udpReqHeader, const Udp::Header udpReqHeader,
const uint8_t* buffer const uint8_t* buffer
); );
}; // namespace Net::Tftp } // namespace Net::Tftp

View file

@ -68,4 +68,4 @@ namespace Net::Udp
); );
} }
} }
}; // namespace Net::Udp } // namespace Net::Udp

View file

@ -43,4 +43,4 @@ namespace Net::Udp
const uint8_t* buffer, const uint8_t* buffer,
const size_t size const size_t size
); );
}; // namespace Net::Udp } // namespace Net::Udp

View file

@ -124,4 +124,4 @@ namespace Net::Utils
return macAddress; return macAddress;
} }
}; // namespace Net::Utils } // namespace Net::Utils