diff options
author | NeilBrown <neilb@suse.de> | 2010-11-22 20:58:05 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-22 20:58:05 +1100 |
commit | fa56eddbd1ff1e007cfe588ddc97787d81a4fc3d (patch) | |
tree | f8981eddf1be405d8577fa587d079015b99b219f /mdadm.c | |
parent | 08fb91a3630be9cb4efdb0586e9713dac104b22a (diff) |
Improve mddev_ident type definitions.
Remove the _t typedef and remove the _s suffix from the struct name.
These things do not help readability.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -48,7 +48,7 @@ int main(int argc, char *argv[]) int raiddisks = 0; int max_disks = MD_SB_DISKS; /* just a default */ int sparedisks = 0; - struct mddev_ident_s ident; + struct mddev_ident ident; char *configfile = NULL; char *cp; char *update = NULL; @@ -1110,7 +1110,7 @@ int main(int argc, char *argv[]) if (devs_found == 1 && ident.uuid_set == 0 && ident.super_minor == UnSet && ident.name[0] == 0 && !scan ) { /* Only a device has been given, so get details from config file */ - mddev_ident_t array_ident = conf_get_ident(devlist->devname); + struct mddev_ident *array_ident = conf_get_ident(devlist->devname); if (array_ident == NULL) { fprintf(stderr, Name ": %s not identified in config file.\n", devlist->devname); @@ -1142,7 +1142,7 @@ int main(int argc, char *argv[]) exit(1); } for (dv = devlist ; dv ; dv=dv->next) { - mddev_ident_t array_ident = conf_get_ident(dv->devname); + struct mddev_ident *array_ident = conf_get_ident(dv->devname); if (array_ident == NULL) { fprintf(stderr, Name ": %s not identified in config file.\n", dv->devname); @@ -1158,7 +1158,7 @@ int main(int argc, char *argv[]) verbose-quiet, force); } } else { - mddev_ident_t a, array_list = conf_get_ident(NULL); + struct mddev_ident *a, *array_list = conf_get_ident(NULL); mddev_dev_t devlist = conf_get_devs(); int cnt = 0; int failures, successes; |