Changeset b7fd2a0 in mainline for uspace/app/fdisk/fdisk.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/fdisk/fdisk.c
r36f0738 rb7fd2a0 68 68 } devac_t; 69 69 70 static int fdsk_pcnt_fs_format(vol_part_cnt_t pcnt, vol_fstype_t fstype,70 static errno_t fdsk_pcnt_fs_format(vol_part_cnt_t pcnt, vol_fstype_t fstype, 71 71 char **rstr) 72 72 { 73 int rc;73 errno_t rc; 74 74 char *s; 75 75 … … 97 97 98 98 /** Confirm user selection. */ 99 static int fdsk_confirm(const char *msg, bool *rconfirm)99 static errno_t fdsk_confirm(const char *msg, bool *rconfirm) 100 100 { 101 101 tinput_t *tinput = NULL; 102 102 char *answer; 103 int rc;103 errno_t rc; 104 104 105 105 tinput = tinput_new(); … … 146 146 147 147 /** Device selection */ 148 static int fdsk_dev_sel_choice(service_id_t *rsvcid)148 static errno_t fdsk_dev_sel_choice(service_id_t *rsvcid) 149 149 { 150 150 fdisk_dev_list_t *devlist = NULL; … … 159 159 void *sel; 160 160 int ndevs; 161 int rc;161 errno_t rc; 162 162 163 163 rc = nchoice_create(&choice); … … 281 281 } 282 282 283 static int fdsk_create_label(fdisk_dev_t *dev)283 static errno_t fdsk_create_label(fdisk_dev_t *dev) 284 284 { 285 285 nchoice_t *choice = NULL; … … 287 287 char *sltype = NULL; 288 288 int i; 289 int rc;289 errno_t rc; 290 290 291 291 rc = nchoice_create(&choice); … … 341 341 } 342 342 343 static int fdsk_delete_label(fdisk_dev_t *dev)343 static errno_t fdsk_delete_label(fdisk_dev_t *dev) 344 344 { 345 345 bool confirm; 346 int rc;346 errno_t rc; 347 347 348 348 rc = fdsk_confirm("Warning. Any data on disk will be lost. " … … 365 365 } 366 366 367 static int fdsk_erase_disk(fdisk_dev_t *dev)367 static errno_t fdsk_erase_disk(fdisk_dev_t *dev) 368 368 { 369 369 bool confirm; 370 int rc;370 errno_t rc; 371 371 372 372 rc = fdsk_confirm("Warning. Any data on disk will be lost. " … … 389 389 } 390 390 391 static int fdsk_select_fstype(vol_fstype_t *fstype)391 static errno_t fdsk_select_fstype(vol_fstype_t *fstype) 392 392 { 393 393 nchoice_t *choice = NULL; … … 395 395 char *sfstype; 396 396 int i; 397 int rc;397 errno_t rc; 398 398 399 399 rc = nchoice_create(&choice); … … 444 444 } 445 445 446 static int fdsk_create_part(fdisk_dev_t *dev, label_pkind_t pkind)446 static errno_t fdsk_create_part(fdisk_dev_t *dev, label_pkind_t pkind) 447 447 { 448 int rc;448 errno_t rc; 449 449 fdisk_part_spec_t pspec; 450 450 cap_spec_t cap; … … 553 553 } 554 554 555 static int fdsk_delete_part(fdisk_dev_t *dev)555 static errno_t fdsk_delete_part(fdisk_dev_t *dev) 556 556 { 557 557 nchoice_t *choice = NULL; … … 565 565 bool confirm; 566 566 void *sel; 567 int rc;567 errno_t rc; 568 568 569 569 rc = nchoice_create(&choice); … … 700 700 701 701 /** Device menu */ 702 static int fdsk_dev_menu(fdisk_dev_t *dev)702 static errno_t fdsk_dev_menu(fdisk_dev_t *dev) 703 703 { 704 704 nchoice_t *choice = NULL; … … 717 717 char *spkind; 718 718 const char *label; 719 int rc;719 errno_t rc; 720 720 int npart; 721 721 void *sel; … … 1079 1079 service_id_t svcid; 1080 1080 fdisk_dev_t *dev; 1081 int rc;1081 errno_t rc; 1082 1082 1083 1083 rc = fdisk_create(&fdisk);
Note:
See TracChangeset
for help on using the changeset viewer.