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