summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index 732bc1c..dd8b176 100644
--- a/util.c
+++ b/util.c
@@ -729,7 +729,7 @@ struct supertype *super_by_fd(int fd)
int vers;
int minor;
struct supertype *st = NULL;
- struct sysarray *sra;
+ struct mdinfo *sra;
char *verstr = NULL;
char version[20];
int i;
@@ -737,8 +737,8 @@ struct supertype *super_by_fd(int fd)
sra = sysfs_read(fd, 0, GET_VERSION);
if (sra) {
- vers = sra->major_version;
- minor = sra->minor_version;
+ vers = sra->array.major_version;
+ minor = sra->array.minor_version;
} else {
if (ioctl(fd, GET_ARRAY_INFO, &array))
array.major_version = array.minor_version = 0;