Join two else/if lines that were left split
Probably after-effects of some #if-ery we removed long ago ... Change-Id: I8bf7a97dc5fda615bf20c37ccd9c1de0ba9194e5 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>bb10
parent
538b9f504c
commit
d345429967
|
|
@ -668,8 +668,7 @@ static bool multicastMembershipHelper(QNativeSocketEnginePrivate *d,
|
|||
Q_IPV6ADDR ip6 = groupAddress.toIPv6Address();
|
||||
memcpy(&mreq6.ipv6mr_multiaddr, &ip6, sizeof(ip6));
|
||||
mreq6.ipv6mr_interface = interface.index();
|
||||
} else
|
||||
if (groupAddress.protocol() == QAbstractSocket::IPv4Protocol) {
|
||||
} else if (groupAddress.protocol() == QAbstractSocket::IPv4Protocol) {
|
||||
level = IPPROTO_IP;
|
||||
sockOpt = how4;
|
||||
sockArg = &mreq4;
|
||||
|
|
|
|||
|
|
@ -943,9 +943,7 @@ static bool multicastMembershipHelper(QNativeSocketEnginePrivate *d,
|
|||
Q_IPV6ADDR ip6 = groupAddress.toIPv6Address();
|
||||
memcpy(&mreq6.ipv6mr_multiaddr, &ip6, sizeof(ip6));
|
||||
mreq6.ipv6mr_interface = iface.index();
|
||||
} else
|
||||
|
||||
if (groupAddress.protocol() == QAbstractSocket::IPv4Protocol) {
|
||||
} else if (groupAddress.protocol() == QAbstractSocket::IPv4Protocol) {
|
||||
level = IPPROTO_IP;
|
||||
sockOpt = how4;
|
||||
sockArg = reinterpret_cast<char *>(&mreq4);
|
||||
|
|
|
|||
Loading…
Reference in New Issue