From: Peter Eisentraut Date: Sun, 15 Jan 2012 12:00:52 +0000 (+0200) Subject: pgcrypto: Remove inappropriate const qualifier X-Git-Tag: REL9_2_BETA1~583 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=652300f5392f2d951b368c38f1cf123003e5e21e;p=postgresql 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. --- diff --git a/contrib/pgcrypto/mbuf.c b/contrib/pgcrypto/mbuf.c index 6246900c7a..a2c5293efb 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 37d2db5337..da016c0a53 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);