Use the proper fonst cast
authorChristos Zoulas <christos@zoulas.com>
Sun, 30 Sep 2018 20:56:49 +0000 (16:56 -0400)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 10 Dec 2018 03:02:49 +0000 (22:02 -0500)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
test/testutil/tests.c

index ba37f0173e3cbc4588ba823216f893575deece9f..2ba5b9a649f099d0a007fe9ca19a91687deae539 100644 (file)
@@ -420,7 +420,7 @@ int test_BN_abs_eq_word(const char *file, int line, const char *bns,
 
 static const char *print_time(const ASN1_TIME *t)
 {
-    return t == NULL ? "<null>" : (char *)ASN1_STRING_get0_data(t);
+    return t == NULL ? "<null>" : (const char *)ASN1_STRING_get0_data(t);
 }
 
 #define DEFINE_TIME_T_COMPARISON(opname, op)                            \