diff options
author | Peter Eisentraut | 2019-01-29 00:16:24 +0000 |
---|---|---|
committer | Peter Eisentraut | 2019-02-13 10:50:16 +0000 |
commit | 37d9916020286caec810f4de61fbd0de3568454d (patch) | |
tree | d9d80040f72093664d8a20b55de2a670988d281e /contrib/pgcrypto/imath.c | |
parent | cf40dc65b676c8df1ee12f060b40f0e37a183e04 (diff) |
More unconstify use
Replace casts whose only purpose is to cast away const with the
unconstify() macro.
Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
Diffstat (limited to 'contrib/pgcrypto/imath.c')
-rw-r--r-- | contrib/pgcrypto/imath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pgcrypto/imath.c b/contrib/pgcrypto/imath.c index b94a51b81a4..c267ea6ab33 100644 --- a/contrib/pgcrypto/imath.c +++ b/contrib/pgcrypto/imath.c @@ -2050,7 +2050,7 @@ mp_int_read_cstring(mp_int z, mp_size radix, const char *str, char **end) MP_SIGN(z) = MP_ZPOS; if (end != NULL) - *end = (char *) str; + *end = unconstify(char *, str); /* * Return a truncation error if the string has unprocessed characters |