mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 785918 - Replace the usages of PR_ARRAY_SIZE with mozilla::ArrayLength; r=ehsan
This commit is contained in:
parent
b97bcdcaf5
commit
8596bb0170
@ -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);
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user