Blob Blame History Raw
From 4ea851ed034efdb06d13b34797b9f849e3dcec97 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Wed, 15 Mar 2017 13:32:42 +0100
Subject: [PATCH 16/36] 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 <mzidek@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
---
 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.9.3