diff options
author | Peter Eisentraut | 2012-01-15 12:00:52 +0000 |
---|---|---|
committer | Peter Eisentraut | 2012-01-15 12:00:52 +0000 |
commit | 652300f5392f2d951b368c38f1cf123003e5e21e (patch) | |
tree | 95b6f63ad7e3a3e79a6fad7baa956ac1da212de2 | |
parent | 7064fd06489e069d38a9d67c5322265cb8f7ceec (diff) |
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.
-rw-r--r-- | contrib/pgcrypto/mbuf.c | 2 | ||||
-rw-r--r-- | 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); |