From 652300f5392f2d951b368c38f1cf123003e5e21e Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 15 Jan 2012 14:00:52 +0200 Subject: [PATCH] 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); -- 2.30.2