mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-05 18:41:05 +00:00
Fix Whitespace pr check issues
This commit is contained in:
parent
327049e8e9
commit
0e110c311e
3 changed files with 3 additions and 7 deletions
|
@ -163,9 +163,6 @@ void lan_adv::send_string(const std::string &str)
|
|||
addr.sin_port = htons(adv_port);
|
||||
UDPSocket socket_send(false);
|
||||
|
||||
// Full discloser, the use of inet_proto and the mreq stucture
|
||||
// were suggested by ai.
|
||||
|
||||
inet_pton(AF_INET, adv_multicast_addr, &(addr.sin_addr));
|
||||
|
||||
struct ip_mreq mreq;
|
||||
|
@ -173,7 +170,6 @@ void lan_adv::send_string(const std::string &str)
|
|||
mreq.imr_multiaddr.s_addr = inet_addr(adv_multicast_addr);
|
||||
mreq.imr_interface.s_addr = htonl(INADDR_ANY);
|
||||
|
||||
|
||||
setsockopt(socket_send.GetHandle(), IPPROTO_IP, IP_ADD_MEMBERSHIP,
|
||||
(const char *)&mreq, sizeof(mreq));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue