From 41e9ad5ea092751779062fea5da098df09bb422e Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Wed, 28 Aug 2019 11:22:10 +1000 Subject: Kernel: Add const to packet data in send_raw call --- Kernel/Net/NetworkAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Net/NetworkAdapter.cpp b/Kernel/Net/NetworkAdapter.cpp index c07d00c53b..96e9bbfe86 100644 --- a/Kernel/Net/NetworkAdapter.cpp +++ b/Kernel/Net/NetworkAdapter.cpp @@ -55,7 +55,7 @@ void NetworkAdapter::send(const MACAddress& destination, const ARPPacket& packet m_packets_out++; m_bytes_out += size_in_bytes; memcpy(eth->payload(), &packet, sizeof(ARPPacket)); - send_raw((u8*)eth, size_in_bytes); + send_raw((const u8*)eth, size_in_bytes); } void NetworkAdapter::send_ipv4(const MACAddress& destination_mac, const IPv4Address& destination_ipv4, IPv4Protocol protocol, const u8* payload, size_t payload_size) -- cgit v1.2.3