fixed another shorten-64-to-32 warning in netlink code
This commit is contained in:
parent
ec2fb91aa5
commit
285daa21a5
|
@ -206,7 +206,7 @@ namespace libtorrent {namespace {
|
|||
int nl_dump_request(int sock, std::uint16_t type, std::uint32_t seq, char family, span<char> msg, std::size_t msg_len)
|
||||
{
|
||||
nlmsghdr* nl_msg = reinterpret_cast<nlmsghdr*>(msg.data());
|
||||
nl_msg->nlmsg_len = NLMSG_LENGTH(msg_len);
|
||||
nl_msg->nlmsg_len = std::uint32_t(NLMSG_LENGTH(msg_len));
|
||||
nl_msg->nlmsg_type = type;
|
||||
nl_msg->nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST;
|
||||
nl_msg->nlmsg_seq = seq;
|
||||
|
|
Loading…
Reference in New Issue