From bda1f0c0d6987232f1f8ca2a72755ac62a99fc4c Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sun, 30 Sep 2018 16:57:56 -0400 Subject: [PATCH] Avoid const castaway warning Reviewed-by: Richard Levitte Reviewed-by: Viktor Dukhovni --- test/enginetest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/enginetest.c b/test/enginetest.c index 096a334d1f..dfd5c3f28b 100644 --- a/test/enginetest.c +++ b/test/enginetest.c @@ -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;