Skip to content

Commit

Permalink
changed c-style cast to new c++ cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomenz committed Jun 11, 2024
1 parent 601e6da commit 16e0cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StdSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void InitSocket::IpChangeThread()
addr.nl_family = AF_NETLINK;
addr.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR | RTMGRP_IPV6_IFADDR;

if (bind(fSock, (struct sockaddr *)&addr, sizeof(addr)) == -1)
if (bind(fSock, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)) == -1)
{
::closesocket(fSock);
return;
Expand Down

0 comments on commit 16e0cbf

Please sign in to comment.