While declaring variables in the middle of code withs with
newer gcc's it doesn't work with older, and it is arguably
less readable, so just do the right thing.
From: Paul Clements <paul.clements@steeleye.com>
struct mdp_superblock_1 *sb = sbv;
int i;
char *nm;
+ char *c=map_num(pers, __le32_to_cpu(sb->level));
nm = strchr(sb->set_name, ':');
if (nm)
else
nm = "??";
- char *c=map_num(pers, __le32_to_cpu(sb->level));
-
printf("ARRAY /dev/md/%s level=%s metadata=1 num-devices=%d UUID=",
nm,
c?c:"-unknown-", sb->raid_disks);