Changeset 1106 in MondoRescue for trunk/mondo/src/common/libmondo-raid.c
- Timestamp:
- Feb 7, 2007, 11:55:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/common/libmondo-raid.c
r1086 r1106 214 214 */ 215 215 void add_disk_to_raid_device(struct list_of_disks *disklist, 216 char *device_to_add, int i ndex)216 char *device_to_add, int idx) 217 217 { 218 218 int items; … … 222 222 items = disklist->entries; 223 223 strcpy(disklist->el[items].device, device_to_add); 224 disklist->el[items].index = i ndex;224 disklist->el[items].index = idx; 225 225 items++; 226 226 disklist->entries = items; … … 652 652 653 653 struct list_of_disks *disklist = NULL; 654 int index = 0;655 654 int v = 0; 656 655 … … 708 707 mr_free(tmp); 709 708 } else { 710 index = atoi(valueB); 711 add_disk_to_raid_device(disklist, value, index); 709 add_disk_to_raid_device(disklist, value, atoi(valueB)); 712 710 } 713 711 mr_free(labelB);
Note:
See TracChangeset
for help on using the changeset viewer.