Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)