Bug 980810 - Part 3: Fix clang -Wstring-conversion warnings in UDPSocket and mtransport code. r=bwc

This commit is contained in:
Chris Peterson 2014-03-07 22:57:15 -08:00
parent 910eb057f1
commit e6cb4d3e38
3 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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);