Blame SOURCES/0016-UTIL-iobuf-Make-input-parameter-for-the-readonly-ope.patch

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