diff options
author | Jes Sorensen <jsorensen@fb.com> | 2017-05-02 11:46:49 -0400 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-05-02 11:46:49 -0400 |
commit | 9e4524df1c6c85c362278a08fd4425888d27581f (patch) | |
tree | 283f774c9e50dd0124770399043c5ab374d5d1f3 /Grow.c | |
parent | 2a24dc1b0988a7d924de6339754d4160762a61f7 (diff) | |
download | mdadm-9e4524df1c6c85c362278a08fd4425888d27581f.tar.gz |
Grow: Grow_continue_command: Avoid aliasing array variable
While this would cause a warning since the two are different types,
lets avoid aliasing an existing variable.
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'Grow.c')
-rwxr-xr-x | Grow.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5075,7 +5075,7 @@ int Grow_continue_command(char *devname, int fd, cc = st->ss->container_content(st, subarray); for (content = cc; content ; content = content->next) { - char *array; + char *array_name; int allow_reshape = 1; if (content->reshape_active == 0) @@ -5100,8 +5100,8 @@ int Grow_continue_command(char *devname, int fd, goto Grow_continue_command_exit; } - array = strchr(content->text_version+1, '/')+1; - mdstat = mdstat_by_subdev(array, container); + array_name = strchr(content->text_version+1, '/')+1; + mdstat = mdstat_by_subdev(array_name, container); if (!mdstat) continue; if (mdstat->active == 0) { |