mirror of
https://github.com/postgres/postgres.git
synced 2026-01-05 23:38:41 +03:00
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
This commit is contained in:
@@ -161,7 +161,7 @@ md5_loop(md5_ctxt *ctxt, const uint8 *input, unsigned len)
|
||||
md5_calc(ctxt->md5_buf, ctxt);
|
||||
|
||||
for (i = gap; i + MD5_BUFLEN <= len; i += MD5_BUFLEN)
|
||||
md5_calc((uint8 *) (input + i), ctxt);
|
||||
md5_calc(unconstify(uint8 *, (input + i)), ctxt);
|
||||
|
||||
ctxt->md5_i = len - i;
|
||||
memmove(ctxt->md5_buf, input + i, ctxt->md5_i);
|
||||
|
||||
Reference in New Issue
Block a user