Changes in uspace/app/init/init.c [1569a9b:b7fd2a0] in mainline


Ignore:
File:
1 edited

Legend:

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

    r1569a9b rb7fd2a0  
    7979/** Report mount operation success */
    8080static bool mount_report(const char *desc, const char *mntpt,
    81     const char *fstype, const char *dev, int rc)
     81    const char *fstype, const char *dev, errno_t rc)
    8282{
    8383        switch (rc) {
     
    125125                opts = "restore";
    126126       
    127         int rc = vfs_mount_path(ROOT_MOUNT_POINT, fstype, ROOT_DEVICE, opts,
     127        errno_t rc = vfs_mount_path(ROOT_MOUNT_POINT, fstype, ROOT_DEVICE, opts,
    128128            IPC_FLAG_BLOCKING, 0);
    129129        if (rc == EOK)
     
    144144static bool mount_locfs(void)
    145145{
    146         int rc = vfs_mount_path(LOCFS_MOUNT_POINT, LOCFS_FS_TYPE, "", "",
     146        errno_t rc = vfs_mount_path(LOCFS_MOUNT_POINT, LOCFS_FS_TYPE, "", "",
    147147            IPC_FLAG_BLOCKING, 0);
    148148        return mount_report("Location service filesystem", LOCFS_MOUNT_POINT,
     
    150150}
    151151
    152 static int srv_startl(const char *path, ...)
     152static errno_t srv_startl(const char *path, ...)
    153153{
    154154        struct stat s;
     
    174174        task_id_t id;
    175175        task_wait_t wait;
    176         int rc = task_spawn(&id, &wait, path, cnt, ap);
     176        errno_t rc = task_spawn(&id, &wait, path, cnt, ap);
    177177        va_end(ap);
    178178       
     
    211211}
    212212
    213 static int console(const char *isvc, const char *osvc)
     213static errno_t console(const char *isvc, const char *osvc)
    214214{
    215215        /* Wait for the input service to be ready */
    216216        service_id_t service_id;
    217         int rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING);
     217        errno_t rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING);
    218218        if (rc != EOK) {
    219219                printf("%s: Error waiting on %s (%s)\n", NAME, isvc,
     
    233233}
    234234
    235 static int compositor(const char *isvc, const char *name)
     235static errno_t compositor(const char *isvc, const char *name)
    236236{
    237237        /* Wait for the input service to be ready */
    238238        service_id_t service_id;
    239         int rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING);
     239        errno_t rc = loc_service_get_id(isvc, &service_id, IPC_FLAG_BLOCKING);
    240240        if (rc != EOK) {
    241241                printf("%s: Error waiting on %s (%s)\n", NAME, isvc,
     
    256256        task_id_t id;
    257257        task_wait_t wait;
    258         int rc = task_spawnl(&id, &wait, app, app, winreg, NULL);
     258        errno_t rc = task_spawnl(&id, &wait, app, app, winreg, NULL);
    259259        if (rc != EOK) {
    260260                printf("%s: Error spawning %s %s (%s)\n", NAME, app,
     
    281281                    APP_GETTERM, svc, LOCFS_MOUNT_POINT, app);
    282282               
    283                 int rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc,
     283                errno_t rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc,
    284284                    LOCFS_MOUNT_POINT, "--msg", "--wait", "--", app, NULL);
    285285                if (rc != EOK)
     
    290290                    APP_GETTERM, svc, LOCFS_MOUNT_POINT, app);
    291291               
    292                 int rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc,
     292                errno_t rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc,
    293293                    LOCFS_MOUNT_POINT, "--wait", "--", app, NULL);
    294294                if (rc != EOK)
     
    300300static bool mount_tmpfs(void)
    301301{
    302         int rc = vfs_mount_path(TMPFS_MOUNT_POINT, TMPFS_FS_TYPE, "", "", 0, 0);
     302        errno_t rc = vfs_mount_path(TMPFS_MOUNT_POINT, TMPFS_FS_TYPE, "", "", 0, 0);
    303303        return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT,
    304304            TMPFS_FS_TYPE, NULL, rc);
     
    307307int main(int argc, char *argv[])
    308308{
    309         int rc;
     309        errno_t rc;
    310310
    311311        info_print();
Note: See TracChangeset for help on using the changeset viewer.