Blame SOURCES/Grow-Grow_continue_command-Avoid-aliasing-array-vari.patch

2c1b57
From 9e4524df1c6c85c362278a08fd4425888d27581f Mon Sep 17 00:00:00 2001
2c1b57
From: Jes Sorensen <jsorensen@fb.com>
2c1b57
Date: Tue, 2 May 2017 11:46:49 -0400
2c1b57
Subject: [RHEL7.5 PATCH 104/169] Grow: Grow_continue_command: Avoid
2c1b57
 aliasing array variable
2c1b57
2c1b57
While this would cause a warning since the two are different types,
2c1b57
lets avoid aliasing an existing variable.
2c1b57
2c1b57
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
2c1b57
---
2c1b57
 Grow.c | 6 +++---
2c1b57
 1 file changed, 3 insertions(+), 3 deletions(-)
2c1b57
2c1b57
diff --git a/Grow.c b/Grow.c
2c1b57
index c6967ed..f4bd301 100755
2c1b57
--- a/Grow.c
2c1b57
+++ b/Grow.c
2c1b57
@@ -5075,7 +5075,7 @@ int Grow_continue_command(char *devname, int fd,
2c1b57
 
2c1b57
 		cc = st->ss->container_content(st, subarray);
2c1b57
 		for (content = cc; content ; content = content->next) {
2c1b57
-			char *array;
2c1b57
+			char *array_name;
2c1b57
 			int allow_reshape = 1;
2c1b57
 
2c1b57
 			if (content->reshape_active == 0)
2c1b57
@@ -5100,8 +5100,8 @@ int Grow_continue_command(char *devname, int fd,
2c1b57
 				goto Grow_continue_command_exit;
2c1b57
 			}
2c1b57
 
2c1b57
-			array = strchr(content->text_version+1, '/')+1;
2c1b57
-			mdstat = mdstat_by_subdev(array, container);
2c1b57
+			array_name = strchr(content->text_version+1, '/')+1;
2c1b57
+			mdstat = mdstat_by_subdev(array_name, container);
2c1b57
 			if (!mdstat)
2c1b57
 				continue;
2c1b57
 			if (mdstat->active == 0) {
2c1b57
-- 
2c1b57
2.7.4
2c1b57