mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 09:07:52 +01:00
Preventively fix missing braces warnings.
This CL fixes warnings that will cause issues with new versions of the Android NDK. Bug: None Change-Id: Icd119efec6039d4861d89401b84f94c8da29a314 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/160080 Reviewed-by: Steve Anton <steveanton@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29851}
This commit is contained in:
parent
09c452e7ba
commit
108a2f025d
2 changed files with 3 additions and 3 deletions
|
@ -717,7 +717,7 @@ bool SctpTransport::Connect() {
|
||||||
}
|
}
|
||||||
// Set the MTU and disable MTU discovery.
|
// Set the MTU and disable MTU discovery.
|
||||||
// We can only do this after usrsctp_connect or it has no effect.
|
// We can only do this after usrsctp_connect or it has no effect.
|
||||||
sctp_paddrparams params = {{0}};
|
sctp_paddrparams params = {};
|
||||||
memcpy(¶ms.spp_address, &remote_sconn, sizeof(remote_sconn));
|
memcpy(¶ms.spp_address, &remote_sconn, sizeof(remote_sconn));
|
||||||
params.spp_flags = SPP_PMTUD_DISABLE;
|
params.spp_flags = SPP_PMTUD_DISABLE;
|
||||||
// The MTU value provided specifies the space available for chunks in the
|
// The MTU value provided specifies the space available for chunks in the
|
||||||
|
|
|
@ -148,7 +148,7 @@ bool PhysicalSocket::Create(int family, int type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SocketAddress PhysicalSocket::GetLocalAddress() const {
|
SocketAddress PhysicalSocket::GetLocalAddress() const {
|
||||||
sockaddr_storage addr_storage = {0};
|
sockaddr_storage addr_storage = {};
|
||||||
socklen_t addrlen = sizeof(addr_storage);
|
socklen_t addrlen = sizeof(addr_storage);
|
||||||
sockaddr* addr = reinterpret_cast<sockaddr*>(&addr_storage);
|
sockaddr* addr = reinterpret_cast<sockaddr*>(&addr_storage);
|
||||||
int result = ::getsockname(s_, addr, &addrlen);
|
int result = ::getsockname(s_, addr, &addrlen);
|
||||||
|
@ -163,7 +163,7 @@ SocketAddress PhysicalSocket::GetLocalAddress() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
SocketAddress PhysicalSocket::GetRemoteAddress() const {
|
SocketAddress PhysicalSocket::GetRemoteAddress() const {
|
||||||
sockaddr_storage addr_storage = {0};
|
sockaddr_storage addr_storage = {};
|
||||||
socklen_t addrlen = sizeof(addr_storage);
|
socklen_t addrlen = sizeof(addr_storage);
|
||||||
sockaddr* addr = reinterpret_cast<sockaddr*>(&addr_storage);
|
sockaddr* addr = reinterpret_cast<sockaddr*>(&addr_storage);
|
||||||
int result = ::getpeername(s_, addr, &addrlen);
|
int result = ::getpeername(s_, addr, &addrlen);
|
||||||
|
|
Loading…
Reference in a new issue