Changeset 132ab5d1 in mainline for uspace/app/fdisk/fdisk.c
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/app/fdisk/fdisk.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/fdisk/fdisk.c
r8bfb163 r132ab5d1 210 210 } 211 211 212 rc= asprintf(&dtext, "%s (%s)", svcname, scap);213 if (r c< 0) {212 int ret = asprintf(&dtext, "%s (%s)", svcname, scap); 213 if (ret < 0) { 214 214 rc = ENOMEM; 215 215 printf("Out of memory.\n"); … … 269 269 return EOK; 270 270 error: 271 assert(rc != EOK); 272 *rsvcid = 0; 271 273 if (devlist != NULL) 272 274 fdisk_dev_list_free(devlist); … … 613 615 label = "(No name)"; 614 616 615 rc= asprintf(&sdesc, "%s %s, %s, %s", label,617 int ret = asprintf(&sdesc, "%s %s, %s, %s", label, 616 618 scap, spkind, sfstype); 617 if (r c< 0) {619 if (ret < 0) { 618 620 rc = ENOMEM; 619 621 goto error; … … 621 623 622 624 } else { 623 rc= asprintf(&sdesc, "%s, %s", scap, spkind);624 if (r c< 0) {625 int ret = asprintf(&sdesc, "%s, %s", scap, spkind); 626 if (ret < 0) { 625 627 rc = ENOMEM; 626 628 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.
