Avoid const castaway warning

Reviewed-by: Richard Levitte <levitte@openssl.org>

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
This commit is contained in:
Christos Zoulas 2018-09-30 16:57:56 -04:00 committed by Viktor Dukhovni
parent d8adf68cd6
commit bda1f0c0d6

View file

@ -162,8 +162,8 @@ static int test_engines(void)
ENGINE_free(ptr);
}
for (loop = 0; loop < NUMTOADD; loop++) {
OPENSSL_free((void *)ENGINE_get_id(block[loop]));
OPENSSL_free((void *)ENGINE_get_name(block[loop]));
OPENSSL_free((void *)(intptr_t)ENGINE_get_id(block[loop]));
OPENSSL_free((void *)(intptr_t)ENGINE_get_name(block[loop]));
}
to_return = 1;