Changeset 62140db in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2009-06-16T21:53:42Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
61d2315
Parents:
0471786
Message:

Fix assorted warnings and tiny glitches.

File:
1 edited

Legend:

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

    r0471786 r62140db  
    129129        char *argv[4];
    130130        char vc[MAX_DEVICE_NAME];
     131        int rc;
    131132       
    132133        snprintf(vc, MAX_DEVICE_NAME, "/dev/%s", dev);
     
    135136       
    136137        dev_handle_t handle;
    137         devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING);
     138        rc = devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING);
    138139       
    139         if (handle >= 0) {
     140        if (rc == EOK) {
    140141                argv[0] = "/app/getvc";
    141142                argv[1] = vc;
     
    145146                if (!task_spawn("/app/getvc", argv))
    146147                        printf(NAME ": Error spawning getvc on %s\n", vc);
    147         } else
     148        } else {
    148149                printf(NAME ": Error waiting on %s\n", vc);
     150        }
    149151}
    150152
     
    161163       
    162164        if (!mount_devfs()) {
    163                 return(NAME ": Exiting\n");
     165                printf(NAME ": Exiting\n");
    164166                return -2;
    165167        }
Note: See TracChangeset for help on using the changeset viewer.