Changeset 1103 in MondoRescue for branches/stable/mondo/src/common/libmondo-raid.c
- Timestamp:
- Feb 6, 2007, 11:10:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-raid.c
r1080 r1103 232 232 */ 233 233 void add_disk_to_raid_device(struct list_of_disks *disklist, 234 char *device_to_add, int i ndex)234 char *device_to_add, int idx) 235 235 { 236 236 int items; … … 240 240 items = disklist->entries; 241 241 strcpy(disklist->el[items].device, device_to_add); 242 disklist->el[items].index = i ndex;242 disklist->el[items].index = idx; 243 243 items++; 244 244 disklist->entries = items; … … 696 696 697 697 struct list_of_disks *disklist; 698 int index;699 698 int v; 700 699 … … 754 753 log_it(tmp); 755 754 } else { 756 index = atoi(valueB); 757 add_disk_to_raid_device(disklist, value, index); 755 add_disk_to_raid_device(disklist, value, atoi(valueB)); 758 756 } 759 757 } else {
Note:
See TracChangeset
for help on using the changeset viewer.