From 3a4a88259ba90d3dc45c1adbbfd39bd7c0204a12 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 15 Mar 2017 13:32:42 +0100 Subject: [PATCH 18/97] UTIL: iobuf: Make input parameter for the readonly operation const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Michal Židek Reviewed-by: Simo Sorce --- src/util/sss_iobuf.c | 2 +- src/util/sss_iobuf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/sss_iobuf.c b/src/util/sss_iobuf.c index 7c72ea94d7a005dfd9671793b3ad470a6de7967a..900418b750a3455ebc2c3bb1893db726692260b8 100644 --- a/src/util/sss_iobuf.c +++ b/src/util/sss_iobuf.c @@ -49,7 +49,7 @@ struct sss_iobuf *sss_iobuf_init_empty(TALLOC_CTX *mem_ctx, } struct sss_iobuf *sss_iobuf_init_readonly(TALLOC_CTX *mem_ctx, - uint8_t *data, + const uint8_t *data, size_t size) { struct sss_iobuf *iobuf; diff --git a/src/util/sss_iobuf.h b/src/util/sss_iobuf.h index eae357a40f2948e63df189f2842edee68691a542..900faaa212230f72f52e344c085167e80ae2b465 100644 --- a/src/util/sss_iobuf.h +++ b/src/util/sss_iobuf.h @@ -47,7 +47,7 @@ struct sss_iobuf *sss_iobuf_init_empty(TALLOC_CTX *mem_ctx, * @return The newly created buffer on success or NULL on an error. */ struct sss_iobuf *sss_iobuf_init_readonly(TALLOC_CTX *mem_ctx, - uint8_t *data, + const uint8_t *data, size_t size); /* -- 2.12.2