Changeset 2350 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-mountlist.c
- Timestamp:
- Aug 28, 2009, 2:24:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-mountlist.c
r2304 r2350 500 500 * @see evaluate_drive_within_mountlist 501 501 */ 502 int 503 evaluate_mountlist(struct mountlist_itself *mountlist, char *flaws_str_A, 504 char *flaws_str_B, char *flaws_str_C) 505 { 502 char *evaluate_mountlist(struct mountlist_itself *mountlist, int *res) { 506 503 507 504 /*@ buffer *********************************************************** */ … … 512 509 /*@ int ************************************************************** */ 513 510 int i = 0; 514 int res = 0;515 511 516 512 /*@ initialize ******************************************************* */ 517 513 514 *res = 0; 518 515 drivelist = malloc(sizeof(struct list_of_disks)); 519 516 assert(mountlist != NULL); 520 assert(flaws_str_A != NULL);521 assert(flaws_str_B != NULL);522 assert(flaws_str_C != NULL);523 517 524 518 mr_asprintf(&flaws_str, "%s", ""); … … 539 533 tmp = evaluate_drive_within_mountlist(mountlist, drivelist->el[i].device); 540 534 if (tmp == NULL) { 541 res++;535 (*res)++; 542 536 } 543 537 } … … 550 544 } 551 545 } 552 res += look_for_duplicate_mountpoints(mountlist, flaws_str); 553 res = spread_flaws_across_three_lines(flaws_str, flaws_str_A, flaws_str_B, flaws_str_C,res); 554 paranoid_free(flaws_str); 555 return(res); 546 *res += look_for_duplicate_mountpoints(mountlist, flaws_str); 547 return(flaws_str); 556 548 } 557 549
Note:
See TracChangeset
for help on using the changeset viewer.