diff --git a/security/manager/boot/src/nsStrictTransportSecurityService.cpp b/security/manager/boot/src/nsStrictTransportSecurityService.cpp index 8a1b9b116567..9bbf1e42188a 100644 --- a/security/manager/boot/src/nsStrictTransportSecurityService.cpp +++ b/security/manager/boot/src/nsStrictTransportSecurityService.cpp @@ -352,7 +352,7 @@ nsStrictTransportSecurityService::GetPreloadListEntry(const char *aHost) { return (const nsSTSPreload *) bsearch(aHost, kSTSPreloadList, - mozilla::ArrayLength(kSTSPreloadList), + PR_ARRAY_SIZE(kSTSPreloadList), sizeof(nsSTSPreload), STSPreloadCompare); } diff --git a/toolkit/identity/IdentityCryptoService.cpp b/toolkit/identity/IdentityCryptoService.cpp index 61f9d4a182ae..707636ced19d 100644 --- a/toolkit/identity/IdentityCryptoService.cpp +++ b/toolkit/identity/IdentityCryptoService.cpp @@ -457,9 +457,9 @@ GenerateDSAKeyPair(PK11SlotInfo * slot, PQGParams pqgParams = { NULL /*arena*/, - { siBuffer, P, mozilla::ArrayLength(P) }, - { siBuffer, Q, mozilla::ArrayLength(Q) }, - { siBuffer, G, mozilla::ArrayLength(G) } + { siBuffer, P, PR_ARRAY_SIZE(P) }, + { siBuffer, Q, PR_ARRAY_SIZE(Q) }, + { siBuffer, G, PR_ARRAY_SIZE(G) } }; return GenerateKeyPair(slot, privateKey, publicKey, CKM_DSA_KEY_PAIR_GEN,