Skip to content

Commit 652300f

Browse files
committed
pgcrypto: Remove inappropriate const qualifier
The function in question does not in fact ensure that the passed argument is not changed, and the callers don't care much either.
1 parent 7064fd0 commit 652300f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pgcrypto/mbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ mbuf_create(int len)
136136
}
137137

138138
MBuf *
139-
mbuf_create_from_data(const uint8 *data, int len)
139+
mbuf_create_from_data(uint8 *data, int len)
140140
{
141141
MBuf *mbuf;
142142

contrib/pgcrypto/mbuf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct PullFilterOps
7777
* Memory buffer
7878
*/
7979
MBuf *mbuf_create(int len);
80-
MBuf *mbuf_create_from_data(const uint8 *data, int len);
80+
MBuf *mbuf_create_from_data(uint8 *data, int len);
8181
int mbuf_tell(MBuf *mbuf);
8282
int mbuf_avail(MBuf *mbuf);
8383
int mbuf_size(MBuf *mbuf);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy