Blame SOURCES/0089-sss_iobuf-fix-read-shadows-a-global-declaration.patch
|
|
ecf709 |
From ce191dc1922d894573eee828c88c325f64515d3e Mon Sep 17 00:00:00 2001
|
|
|
ecf709 |
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
|
|
|
ecf709 |
Date: Tue, 28 Mar 2017 15:26:52 +0200
|
|
|
ecf709 |
Subject: [PATCH 89/90] sss_iobuf: fix 'read' shadows a global declaration
|
|
|
ecf709 |
MIME-Version: 1.0
|
|
|
ecf709 |
Content-Type: text/plain; charset=UTF-8
|
|
|
ecf709 |
Content-Transfer-Encoding: 8bit
|
|
|
ecf709 |
|
|
|
ecf709 |
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
|
|
|
ecf709 |
(cherry picked from commit 18e4fe9d836e8f7bee52724374ffc0011172329f)
|
|
|
ecf709 |
---
|
|
|
ecf709 |
src/util/sss_iobuf.c | 6 +++---
|
|
|
ecf709 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
ecf709 |
|
|
|
ecf709 |
diff --git a/src/util/sss_iobuf.c b/src/util/sss_iobuf.c
|
|
|
ecf709 |
index fc288d2df2bfaaba393dd490d4da8976de804cb5..518713e4cc3dd99627a3a4450f235cbbc69ed3a2 100644
|
|
|
ecf709 |
--- a/src/util/sss_iobuf.c
|
|
|
ecf709 |
+++ b/src/util/sss_iobuf.c
|
|
|
ecf709 |
@@ -188,15 +188,15 @@ errno_t sss_iobuf_read_len(struct sss_iobuf *iobuf,
|
|
|
ecf709 |
size_t len,
|
|
|
ecf709 |
uint8_t *_buf)
|
|
|
ecf709 |
{
|
|
|
ecf709 |
- size_t read;
|
|
|
ecf709 |
+ size_t read_bytes;
|
|
|
ecf709 |
errno_t ret;
|
|
|
ecf709 |
|
|
|
ecf709 |
- ret = sss_iobuf_read(iobuf, len, _buf, &read;;
|
|
|
ecf709 |
+ ret = sss_iobuf_read(iobuf, len, _buf, &read_bytes);
|
|
|
ecf709 |
if (ret != EOK) {
|
|
|
ecf709 |
return ret;
|
|
|
ecf709 |
}
|
|
|
ecf709 |
|
|
|
ecf709 |
- if (read != len) {
|
|
|
ecf709 |
+ if (read_bytes != len) {
|
|
|
ecf709 |
return ENOBUFS;
|
|
|
ecf709 |
}
|
|
|
ecf709 |
|
|
|
ecf709 |
--
|
|
|
ecf709 |
2.9.3
|
|
|
ecf709 |
|