Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sysinst/sysinst.c

    r1d6dd2a r6c4eedf  
    4444#include <stdio.h>
    4545#include <stdlib.h>
    46 #include <str_error.h>
    4746#include <task.h>
    4847#include <vfs/vfs.h>
    49 #include <str.h>
    5048
    5149#include "futil.h"
     
    8482 * @param pdev Place to store partition device name
    8583 *
    86  * @return EOK on success or an error code
    87  */
    88 static errno_t sysinst_label_dev(const char *dev, char **pdev)
     84 * @return EOK on success or error code
     85 */
     86static int sysinst_label_dev(const char *dev, char **pdev)
    8987{
    9088        fdisk_t *fdisk;
     
    9492        cap_spec_t cap;
    9593        service_id_t sid;
    96         errno_t rc;
     94        int rc;
    9795
    9896        printf("sysinst_label_dev(): get service ID '%s'\n", dev);
     
    119117        rc = fdisk_label_create(fdev, lt_mbr);
    120118        if (rc != EOK) {
    121                 printf("Error creating label: %s.\n", str_error(rc));
     119                printf("Error creating label (%d).\n", rc);
    122120                return rc;
    123121        }
     
    127125        rc = fdisk_part_get_max_avail(fdev, spc_pri, &cap);
    128126        if (rc != EOK) {
    129                 printf("Error getting available capacity: %s.\n", str_error(rc));
     127                printf("Error getting available capacity (%d).\n", rc);
    130128                return rc;
    131129        }
     
    143141
    144142        /* 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)
    146145                return ENOMEM;
    147146
     
    153152 *
    154153 * @param dev Partition device
    155  * @return EOK on success or an error code
    156  */
    157 static errno_t sysinst_fs_mount(const char *dev)
     154 * @return EOK on success or error code
     155 */
     156static int sysinst_fs_mount(const char *dev)
    158157{
    159158        task_wait_t twait;
    160159        task_exit_t texit;
    161         errno_t rc;
     160        int rc;
    162161        int trc;
    163162
     
    192191/** Copy boot files.
    193192 *
    194  * @return EOK on success or an error code
    195  */
    196 static errno_t sysinst_copy_boot_files(void)
     193 * @return EOK on success or error code
     194 */
     195static int sysinst_copy_boot_files(void)
    197196{
    198197        task_wait_t twait;
    199198        task_exit_t texit;
    200         errno_t rc;
     199        int rc;
    201200        int trc;
    202201
     
    259258 *
    260259 * @param devp Disk device
    261  * @return EOK on success or an error code
    262  */
    263 static errno_t sysinst_copy_boot_blocks(const char *devp)
     260 * @return EOK on success or error code
     261 */
     262static int sysinst_copy_boot_blocks(const char *devp)
    264263{
    265264        void *boot_img;
     
    273272        aoff64_t core_blocks;
    274273        grub_boot_blocklist_t *first_bl, *bl;
    275         errno_t rc;
     274        int rc;
    276275
    277276        printf("sysinst_copy_boot_blocks: Read boot block image.\n");
     
    354353 *
    355354 * @param dev Device to install to.
    356  * @return EOK on success or an error code
    357  */
    358 static errno_t sysinst_install(const char *dev)
    359 {
    360         errno_t rc;
     355 * @return EOK on success or error code
     356 */
     357static int sysinst_install(const char *dev)
     358{
     359        int rc;
    361360        char *pdev;
    362361
Note: See TracChangeset for help on using the changeset viewer.