Changes in uspace/app/sysinst/sysinst.c [1d6dd2a:6c4eedf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/sysinst.c
r1d6dd2a r6c4eedf 44 44 #include <stdio.h> 45 45 #include <stdlib.h> 46 #include <str_error.h>47 46 #include <task.h> 48 47 #include <vfs/vfs.h> 49 #include <str.h>50 48 51 49 #include "futil.h" … … 84 82 * @param pdev Place to store partition device name 85 83 * 86 * @return EOK on success or anerror code87 */ 88 static errno_t sysinst_label_dev(const char *dev, char **pdev)84 * @return EOK on success or error code 85 */ 86 static int sysinst_label_dev(const char *dev, char **pdev) 89 87 { 90 88 fdisk_t *fdisk; … … 94 92 cap_spec_t cap; 95 93 service_id_t sid; 96 errno_t rc;94 int rc; 97 95 98 96 printf("sysinst_label_dev(): get service ID '%s'\n", dev); … … 119 117 rc = fdisk_label_create(fdev, lt_mbr); 120 118 if (rc != EOK) { 121 printf("Error creating label : %s.\n", str_error(rc));119 printf("Error creating label (%d).\n", rc); 122 120 return rc; 123 121 } … … 127 125 rc = fdisk_part_get_max_avail(fdev, spc_pri, &cap); 128 126 if (rc != EOK) { 129 printf("Error getting available capacity : %s.\n", str_error(rc));127 printf("Error getting available capacity (%d).\n", rc); 130 128 return rc; 131 129 } … … 143 141 144 142 /* XXX libfdisk should give us the service name */ 145 if (asprintf(pdev, "%sp1", dev) < 0) 143 rc = asprintf(pdev, "%sp1", dev); 144 if (rc < 0) 146 145 return ENOMEM; 147 146 … … 153 152 * 154 153 * @param dev Partition device 155 * @return EOK on success or anerror code156 */ 157 static errno_t sysinst_fs_mount(const char *dev)154 * @return EOK on success or error code 155 */ 156 static int sysinst_fs_mount(const char *dev) 158 157 { 159 158 task_wait_t twait; 160 159 task_exit_t texit; 161 errno_t rc;160 int rc; 162 161 int trc; 163 162 … … 192 191 /** Copy boot files. 193 192 * 194 * @return EOK on success or anerror code195 */ 196 static errno_t sysinst_copy_boot_files(void)193 * @return EOK on success or error code 194 */ 195 static int sysinst_copy_boot_files(void) 197 196 { 198 197 task_wait_t twait; 199 198 task_exit_t texit; 200 errno_t rc;199 int rc; 201 200 int trc; 202 201 … … 259 258 * 260 259 * @param devp Disk device 261 * @return EOK on success or anerror code262 */ 263 static errno_t sysinst_copy_boot_blocks(const char *devp)260 * @return EOK on success or error code 261 */ 262 static int sysinst_copy_boot_blocks(const char *devp) 264 263 { 265 264 void *boot_img; … … 273 272 aoff64_t core_blocks; 274 273 grub_boot_blocklist_t *first_bl, *bl; 275 errno_t rc;274 int rc; 276 275 277 276 printf("sysinst_copy_boot_blocks: Read boot block image.\n"); … … 354 353 * 355 354 * @param dev Device to install to. 356 * @return EOK on success or anerror code357 */ 358 static errno_t sysinst_install(const char *dev)359 { 360 errno_t rc;355 * @return EOK on success or error code 356 */ 357 static int sysinst_install(const char *dev) 358 { 359 int rc; 361 360 char *pdev; 362 361
Note:
See TracChangeset
for help on using the changeset viewer.