Fix shadowing warnings

Fixes type/variable shadowing warnings on debian and ubuntu
This commit is contained in:
Dentomologist
2021-03-03 16:31:33 -08:00
parent 636bf38824
commit fa61fc4f9c
2 changed files with 3 additions and 3 deletions

View File

@ -186,8 +186,8 @@ void PCAPSSLCaptureLogger::LogIPv4(LogType log_type, const u8* data, u16 length,
}
std::vector<u8> packet;
auto insert = [&](const auto* data, std::size_t size) {
const u8* begin = reinterpret_cast<const u8*>(data);
auto insert = [&](const auto* new_data, std::size_t size) {
const u8* begin = reinterpret_cast<const u8*>(new_data);
packet.insert(packet.end(), begin, begin + size);
};