]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super1.c
Remove ident arg from getinfo_super;
[thirdparty/mdadm.git] / super1.c
index 4df637004be7cfea651cc18cd4a3e7eaffe2cf3f..38b53e7d88121c93013ad0b5ed99a4fd63abbd95 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -353,7 +353,7 @@ static void uuid_from_super1(int uuid[4], void * sbv)
                cuuid[i] = super->set_uuid[i];
 }
 
-static void getinfo_super1(struct mdinfo *info, mddev_ident_t ident, void *sbv)
+static void getinfo_super1(struct mdinfo *info, void *sbv)
 {
        struct mdp_superblock_1 *sb = sbv;
        int working = 0;
@@ -399,8 +399,8 @@ static void getinfo_super1(struct mdinfo *info, mddev_ident_t ident, void *sbv)
 
        memcpy(info->uuid, sb->set_uuid, 16);
 
-       strncpy(ident->name, sb->set_name, 32);
-       ident->name[32] = 0;
+       strncpy(info->name, sb->set_name, 32);
+       info->name[32] = 0;
 
        if (sb->feature_map & __le32_to_cpu(MD_FEATURE_RESHAPE_ACTIVE)) {
                info->reshape_active = 1;