Skip to content
Snippets Groups Projects
Commit eb7a4259 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

review: remove trailing white space

parent bb06e10c
No related branches found
No related tags found
1 merge request!496udp-pktinfo: fix bsd recvdstaddr with socket bound to concrete address
......@@ -108,7 +108,7 @@ static bool enable_pktinfo(int sock, struct sockaddr_storage *addr)
switch (addr->ss_family) {
case AF_INET:
if (((struct sockaddr_in *)addr)->sin_addr.s_addr != INADDR_ANY) {
return true;
return true;
}
level = IPPROTO_IP;
#if defined(IP_PKTINFO)
......
......@@ -140,7 +140,7 @@ static void udp_pktinfo_handle(const struct msghdr *rx, struct msghdr *tx)
// BSD has problem with zero length and not-null pointer
tx->msg_control = NULL;
}
#if defined(__APPLE__)
/*
* Workaround for OS X: If ipi_ifindex is non-zero, the source address
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment