Changeset 89e2aac in mainline for uspace/lib/fdisk/src/fdisk.c
- Timestamp:
- 2017-07-08T17:06:34Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9bf4488
- Parents:
- 1c88835
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fdisk/src/fdisk.c
r1c88835 r89e2aac 735 735 vbd_part_id_t partid = 0; 736 736 vol_part_info_t vpinfo; 737 char *label; 738 int rc; 739 740 label = str_dup(pspec->label); 741 if (label == NULL) 742 return ENOMEM; 737 const char *label; 738 int rc; 739 740 label = pspec->label != NULL ? pspec->label : ""; 743 741 744 742 rc = fdisk_part_spec_prepare(dev, pspec, &vpspec); … … 762 760 if (part->svc_id != 0) { 763 761 rc = vol_part_mkfs(dev->fdisk->vol, part->svc_id, pspec->fstype, 764 pspec->label);762 label); 765 763 if (rc != EOK && rc != ENOTSUP) { 766 764 rc = EIO;
Note:
See TracChangeset
for help on using the changeset viewer.