summaryrefslogtreecommitdiffstats
path: root/test/dhtest.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-05-03 17:32:05 +0100
committerDr. Stephen Henson <steve@openssl.org>2015-05-04 13:03:49 +0100
commitbdcb1a2cf553166edec0509f4bf3cd36fc964024 (patch)
tree74df1971edbcdcfc448128d33ace8583eb10ff8b /test/dhtest.c
parent59ef580a14a526f6dd8d86b632d67022976fabcd (diff)
more OSSL_NELEM cases
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'test/dhtest.c')
-rw-r--r--test/dhtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dhtest.c b/test/dhtest.c
index 621fcba506..7e46166eeb 100644
--- a/test/dhtest.c
+++ b/test/dhtest.c
@@ -485,7 +485,7 @@ static const rfc5114_td rfctd[] = {
static int run_rfc5114_tests(void)
{
int i;
- for (i = 0; i < (int)(sizeof(rfctd) / sizeof(rfc5114_td)); i++) {
+ for (i = 0; i < (int)OSSL_NELEM(rfctd); i++) {
DH *dhA, *dhB;
unsigned char *Z1 = NULL, *Z2 = NULL;
const rfc5114_td *td = rfctd + i;