mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +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:
@@ -866,7 +866,7 @@ load_dh_buffer(const char *buffer, size_t len)
|
||||
BIO *bio;
|
||||
DH *dh = NULL;
|
||||
|
||||
bio = BIO_new_mem_buf((char *) buffer, len);
|
||||
bio = BIO_new_mem_buf(unconstify(char *, buffer), len);
|
||||
if (bio == NULL)
|
||||
return NULL;
|
||||
dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user