diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-28 20:19:22 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-28 20:19:22 +0200 |
commit | f5ac4da993af6512041f060e95d3e1c2be13d93b (patch) | |
tree | 7a0aab0c6c2aea83620bb82153e82c0b40e38a43 /Kernel/Net/IPv4Socket.cpp | |
parent | fffc5896d869ac73e5e579d66ea5e001fccbed22 (diff) | |
download | serenity-f5ac4da993af6512041f060e95d3e1c2be13d93b.zip |
Kernel: Use AK::Span a bunch in the network adapter code
Diffstat (limited to 'Kernel/Net/IPv4Socket.cpp')
-rw-r--r-- | Kernel/Net/IPv4Socket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/IPv4Socket.cpp b/Kernel/Net/IPv4Socket.cpp index fb8d179601..c47913abaa 100644 --- a/Kernel/Net/IPv4Socket.cpp +++ b/Kernel/Net/IPv4Socket.cpp @@ -226,7 +226,7 @@ ssize_t IPv4Socket::sendto(FileDescription&, const void* data, size_t data_lengt #endif if (type() == SOCK_RAW) { - routing_decision.adapter->send_ipv4(routing_decision.next_hop, m_peer_address, (IPv4Protocol)protocol(), (const u8*)data, data_length, m_ttl); + routing_decision.adapter->send_ipv4(routing_decision.next_hop, m_peer_address, (IPv4Protocol)protocol(), { (const u8*)data, data_length }, m_ttl); return data_length; } |