Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan

This commit is contained in:
Isaac Aggrey
2012-09-28 01:57:33 -05:00
parent 56e5a1bd47
commit 990e90e88a
230 changed files with 485 additions and 485 deletions

View File

@@ -930,7 +930,7 @@ WebSocketChannel::WebSocketChannel() :
mDataStarted(0),
mIncrementedSessionCount(0),
mDecrementedSessionCount(0),
mMaxMessageSize(PR_INT32_MAX),
mMaxMessageSize(INT32_MAX),
mStopOnClose(NS_OK),
mServerCloseCode(CLOSE_ABNORMAL),
mScriptCloseCode(0),
@@ -2481,7 +2481,7 @@ WebSocketChannel::AsyncOpen(nsIURI *aURI,
rv = prefService->GetIntPref("network.websocket.max-message-size",
&intpref);
if (NS_SUCCEEDED(rv)) {
mMaxMessageSize = clamped(intpref, 1024, PR_INT32_MAX);
mMaxMessageSize = clamped(intpref, 1024, INT32_MAX);
}
rv = prefService->GetIntPref("network.websocket.timeout.close", &intpref);
if (NS_SUCCEEDED(rv)) {