Ignore:
Timestamp:
Nov 5, 2016, 6:12:23 PM (7 years ago)
Author:
Bruno Cornec
Message:
  • Change interfaces for the call_program_and_get_last_line_of_output and where_is_root_mounted(now return dynamically allocated string)
  • removes useless function store_netfs_config
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-raid.c

    r3566 r3610  
    10071007            strcpy(raidlist->el[raidlist->entries].additional_vars.el[v].label, "UUID");
    10081008            mr_asprintf(cmd,"mdadm --detail %s | grep UUID | cut -d: -f2- | sed 's/^ *//'", raidlist->el[raidlist->entries].raid_device);
    1009             mr_asprintf(strtmp, "%s", call_program_and_get_last_line_of_output(cmd));
     1009            strtmp = call_program_and_get_last_line_of_output(cmd);
    10101010            strcpy(raidlist->el[raidlist->entries].additional_vars.el[v].value, strtmp);
    10111011            mr_free(strtmp);
     
    10141014            strcpy(raidlist->el[raidlist->entries].additional_vars.el[v].label, "Version");
    10151015            mr_asprintf(cmd,"mdadm --detail %s | grep Version | cut -d: -f2- | sed 's/^ *//'", raidlist->el[raidlist->entries].raid_device);
    1016             mr_asprintf(strtmp, "%s", call_program_and_get_last_line_of_output(cmd));
     1016            strtmp = call_program_and_get_last_line_of_output(cmd);
    10171017            strcpy(raidlist->el[raidlist->entries].additional_vars.el[v].value, strtmp);
    10181018            mr_free(strtmp);
Note: See TracChangeset for help on using the changeset viewer.