From: Christos Zoulas Date: Sun, 30 Sep 2018 20:59:46 +0000 (-0400) Subject: Fix const issues X-Git-Tag: openssl-3.0.0-alpha1~2730 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5db120dc351177173bb25e963be095404c31fbce;p=oweals%2Fopenssl.git Fix const issues Reviewed-by: Richard Levitte Reviewed-by: Viktor Dukhovni --- diff --git a/test/testutil/format_output.c b/test/testutil/format_output.c index b2207503f9..ead03841d5 100644 --- a/test/testutil/format_output.c +++ b/test/testutil/format_output.c @@ -206,6 +206,7 @@ static int convert_bn_memory(const unsigned char *in, size_t bytes, { int n = bytes * 2, i; char *p = out, *q = NULL; + const char *r; if (bn != NULL && !BN_is_zero(bn)) { hex_convert_memory(in, bytes, out, BN_OUTPUT_SIZE); @@ -248,10 +249,10 @@ static int convert_bn_memory(const unsigned char *in, size_t bytes, } *p = '\0'; if (bn == NULL) - q = "NULL"; + r = "NULL"; else - q = BN_is_negative(bn) ? "-0" : "0"; - strcpy(p - strlen(q), q); + r = BN_is_negative(bn) ? "-0" : "0"; + strcpy(p - strlen(r), r); return 0; }