mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980810 - Part 3: Fix clang -Wstring-conversion warnings in UDPSocket and mtransport code. r=bwc
This commit is contained in:
parent
910eb057f1
commit
e6cb4d3e38
@ -20,6 +20,7 @@ UDPSocketChildBase::UDPSocketChildBase()
|
||||
UDPSocketChildBase::~UDPSocketChildBase()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
UDPSocketChildBase::ReleaseIPDLReference()
|
||||
{
|
||||
@ -198,7 +199,7 @@ UDPSocketChild::RecvCallback(const nsCString &aType,
|
||||
const UDPSendResult& returnValue(aData.get_UDPSendResult());
|
||||
rv = mSocket->CallListenerSent(aType, returnValue.value());
|
||||
} else {
|
||||
MOZ_ASSERT("Invalid callback type!");
|
||||
MOZ_ASSERT(false, "Invalid callback type!");
|
||||
}
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, true);
|
||||
|
@ -45,7 +45,7 @@ ConvertNetAddrToString(mozilla::net::NetAddr &netAddr, nsACString *address, uint
|
||||
break;
|
||||
default:
|
||||
//impossible
|
||||
MOZ_ASSERT("Unexpected address family");
|
||||
MOZ_ASSERT(false, "Unexpected address family");
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
|
||||
|
@ -516,7 +516,8 @@ int NrSocket::sendto(const void *msg, size_t len,
|
||||
sustained.getTokens(UINT32_MAX) < len) {
|
||||
r_log(LOG_GENERIC, LOG_ERR,
|
||||
"Global rate limit for STUN requests exceeded.");
|
||||
MOZ_ASSERT("Global rate limit for STUN requests exceeded. Go bug "
|
||||
MOZ_ASSERT(false,
|
||||
"Global rate limit for STUN requests exceeded. Go bug "
|
||||
"bcampen@mozilla.com if you weren't intentionally spamming "
|
||||
"ICE candidates, or don't know what that means.");
|
||||
ABORT(R_WOULDBLOCK);
|
||||
|
Loading…
Reference in New Issue
Block a user