Changeset 1106 in MondoRescue for trunk/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Feb 7, 2007, 11:55:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/mondorestore/mondo-rstr-tools.c
r1086 r1106 55 55 * Free the malloc()s for the filename variables. 56 56 */ 57 void free_MR_global_filenames( )57 void free_MR_global_filenames(void) 58 58 { 59 59 mr_free(g_biggielist_txt); … … 537 537 538 538 assert(p_external_copy_of_mountlist != NULL); 539 mountlist = mr_malloc(sizeof(struct mountlist_itself));539 mountlist = (struct mountlist_itself *)mr_malloc(sizeof(struct mountlist_itself)); 540 540 memcpy((void *) mountlist, (void *) p_external_copy_of_mountlist, 541 541 sizeof(struct mountlist_itself)); … … 620 620 } 621 621 run_program_and_log_output("df -m", 3); 622 mr_free( mountlist);622 mr_free((void*) mountlist); 623 623 return (retval); 624 624 } … … 918 918 919 919 read_cfg_var(cfg_file, "acl", value); 920 if (strstr(value, " TRUE")) {920 if (strstr(value, "yes")) { 921 921 mr_asprintf(&g_getfacl,"setfacl"); 922 922 mr_msg(1, "We will restore ACLs"); … … 926 926 } 927 927 read_cfg_var(cfg_file, "xattr", value); 928 if (strstr(value, " TRUE")) {928 if (strstr(value, "yes")) { 929 929 mr_asprintf(&g_getfattr,"setfattr"); 930 930 mr_msg(1, "We will restore XATTRs"); … … 2027 2027 assert(p_external_copy_of_mountlist != NULL); 2028 2028 2029 mountlist = mr_malloc(sizeof(struct mountlist_itself));2029 mountlist = (struct mountlist_itself *)mr_malloc(sizeof(struct mountlist_itself)); 2030 2030 memcpy((void *) mountlist, (void *) p_external_copy_of_mountlist, 2031 2031 sizeof(struct mountlist_itself)); … … 2120 2120 log_to_screen(_("All partitions were unmounted OK.")); 2121 2121 } 2122 mr_free( mountlist);2122 mr_free((void*) mountlist); 2123 2123 return (retval); 2124 2124 } … … 2441 2441 char *screen_message = NULL; 2442 2442 2443 raidlist = mr_malloc(sizeof(struct raidlist_itself));2443 raidlist = (struct raidlist_itself *)mr_malloc(sizeof(struct raidlist_itself)); 2444 2444 2445 2445 assert(wait_for_percentage <= 100); … … 2479 2479 } 2480 2480 } 2481 mr_free( raidlist);2482 } 2481 mr_free((void*) raidlist); 2482 }
Note:
See TracChangeset
for help on using the changeset viewer.