postgres.git / summary / log / commit / refs
commit 652300f5392f2d951b368c38f1cf123003e5e21e
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Sun Jan 15 12:00:52 2012 +0000
First released in: 9.2.0
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.
contrib/pgcrypto/mbuf.c | 2 +-
contrib/pgcrypto/mbuf.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/pgcrypto/mbuf.c b/contrib/pgcrypto/mbuf.c
index 6246900c7ae..a2c5293efbc 100644
--- a/contrib/pgcrypto/mbuf.c
+++ b/contrib/pgcrypto/mbuf.c
@@ -136,7 +136,7 @@ mbuf_create(int len)
}
MBuf *
-mbuf_create_from_data(const uint8 *data, int len)
+mbuf_create_from_data(uint8 *data, int len)
{
MBuf *mbuf;
diff --git a/contrib/pgcrypto/mbuf.h b/contrib/pgcrypto/mbuf.h
index 37d2db53371..da016c0a539 100644
--- a/contrib/pgcrypto/mbuf.h
+++ b/contrib/pgcrypto/mbuf.h
@@ -77,7 +77,7 @@ struct PullFilterOps
* Memory buffer
*/
MBuf *mbuf_create(int len);
-MBuf *mbuf_create_from_data(const uint8 *data, int len);
+MBuf *mbuf_create_from_data(uint8 *data, int len);
int mbuf_tell(MBuf *mbuf);
int mbuf_avail(MBuf *mbuf);
int mbuf_size(MBuf *mbuf);
[parent: 7064fd06489e]