Skip to content

Commit

Permalink
Fix nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Sep 26, 2023
1 parent 645f925 commit b22386d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/network/NUClearNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ namespace extension {
data[1].iov_len = packet_no + 1 < header.packet_count ? packet_data_mtu : payload.size() % packet_data_mtu;

// Set our target and send (once again const cast is fine)
message.msg_name = const_cast<sockaddr*>(&target.sock);
message.msg_name = const_cast<sockaddr*>(&target.sock); // NOLINT(cppcoreguidelines-pro-type-const-cast)
message.msg_namelen = target.size();

// TODO(trent): if reliable, run select first to see if this socket is writeable
Expand Down

0 comments on commit b22386d

Please sign in to comment.