Bug 785918 - Replace the usages of PR_ARRAY_SIZE with mozilla::ArrayLength; r=ehsan

This commit is contained in:
José Guilherme Vanz 2012-09-25 09:57:08 -04:00
parent b97bcdcaf5
commit 8596bb0170
2 changed files with 4 additions and 4 deletions

View File

@ -352,7 +352,7 @@ nsStrictTransportSecurityService::GetPreloadListEntry(const char *aHost)
{
return (const nsSTSPreload *) bsearch(aHost,
kSTSPreloadList,
PR_ARRAY_SIZE(kSTSPreloadList),
mozilla::ArrayLength(kSTSPreloadList),
sizeof(nsSTSPreload),
STSPreloadCompare);
}

View File

@ -457,9 +457,9 @@ GenerateDSAKeyPair(PK11SlotInfo * slot,
PQGParams pqgParams = {
NULL /*arena*/,
{ siBuffer, P, PR_ARRAY_SIZE(P) },
{ siBuffer, Q, PR_ARRAY_SIZE(Q) },
{ siBuffer, G, PR_ARRAY_SIZE(G) }
{ siBuffer, P, mozilla::ArrayLength(P) },
{ siBuffer, Q, mozilla::ArrayLength(Q) },
{ siBuffer, G, mozilla::ArrayLength(G) }
};
return GenerateKeyPair(slot, privateKey, publicKey, CKM_DSA_KEY_PAIR_GEN,