From: Niels Möller Date: Mon, 18 Feb 2013 14:47:03 +0000 (+0100) Subject: Deleted const cast in SHEX macro. X-Git-Tag: nettle_2.7_release_20130424~109^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11c6d02db3bbb90ebb0257860e84d81914eedb33;p=thirdparty%2Fnettle.git Deleted const cast in SHEX macro. --- diff --git a/ChangeLog b/ChangeLog index aaa189c9..153f92ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2013-02-18 Niels Möller + * testsuite/testutils.h (SHEX): Deleted const cast. + * ecc-point.c: New file, struct ecc_point abstraction. * ecc-scalar.c: New file, struct ecc_scalar abstraction. * ecc-random.c (ecc_modq_random, ecc_scalar_random): New file, new diff --git a/testsuite/testutils.h b/testsuite/testutils.h index 8b470697..99706025 100644 --- a/testsuite/testutils.h +++ b/testsuite/testutils.h @@ -216,7 +216,7 @@ test_ecc_mul_j (unsigned curve, unsigned n, const mp_limb_t *p); #define LDATA(x) LLENGTH(x), x #define LDUP(x) strlen(x), strdup(x) -#define SHEX(x) ((const struct tstring *) tstring_hex(x)) +#define SHEX(x) (tstring_hex(x)) #define SDATA(x) ((const struct tstring *)tstring_data(LLENGTH(x), x)) #define H(x) (SHEX(x)->data)