1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 05:47:34 +00:00

Kernel: Make IPv4Socket::protocol_send() use a size_t for buffer size

This commit is contained in:
Andreas Kling 2020-01-29 12:27:42 +01:00
parent 9ce4ef2dd3
commit 03837e37a3
5 changed files with 7 additions and 7 deletions

View file

@ -88,7 +88,7 @@ int UDPSocket::protocol_receive(const KBuffer& packet_buffer, void* buffer, size
return udp_packet.length() - sizeof(UDPPacket);
}
int UDPSocket::protocol_send(const void* data, int data_length)
int UDPSocket::protocol_send(const void* data, size_t data_length)
{
auto routing_decision = route_to(peer_address(), local_address());
if (routing_decision.is_zero())