Changeset 102f641 in mainline for uspace/srv/taskman/main.c


Ignore:
Timestamp:
2019-09-02T19:01:50Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
25697163
Parents:
241f1985
Message:

Correcting syntax according to ccheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskman/main.c

    r241f1985 r102f641  
    5454#include "taskman.h"
    5555
    56 
    5756typedef struct {
    5857        link_t link;
     
    7473{
    7574        DPRINTF("%s:%i from %llu\n", __func__, __LINE__, icall->task_id);
    76         /* We don't accept the connection request, we forward it instead to
    77          * freshly spawned loader. */
     75        /*
     76         * We don't accept the connection request, we forward it instead to
     77         * freshly spawned loader.
     78         */
    7879        errno_t rc = loader_spawn("loader");
    79        
     80
    8081        if (rc != EOK) {
    8182                async_answer_0(icall, rc);
    8283                return;
    8384        }
    84        
     85
    8586        /* Wait until spawned task presents itself to us. */
    8687        link_t *link = prodcons_consume(&sess_queue);
     
    148149        /* Used only for connection forwarding -- atomic */
    149150        session_ns = async_callback_receive(EXCHANGE_ATOMIC);
    150        
     151
    151152        if (session_ns == NULL) {
    152153                rc = ENOENT;
     
    218219        // TODO check that loader is expected, would probably discard prodcons
    219220        //      scheme
    220        
     221
    221222        /* Preallocate session container */
    222223        sess_ref_t *sess_ref = malloc(sizeof(sess_ref_t));
     
    265266static bool handle_implicit_call(ipc_call_t *icall)
    266267{
    267         /*DPRINTF("%s:%i %i(%i) from %llu\n", __func__, __LINE__,
    268             IPC_GET_IMETHOD(*icall),
    269             IPC_GET_ARG1(*icall),
    270             icall->in_task_id);*/
    271 
    272268        if (ipc_get_imethod(icall) < IPC_FIRST_USER_METHOD) {
    273269                switch (ipc_get_arg1(icall)) {
     
    330326}
    331327
    332 
    333 
    334328int main(int argc, char *argv[])
    335329{
     
    358352                return rc;
    359353        }
    360        
     354
    361355        task_id_t self_id = task_get_id();
    362356        rc = task_intro(self_id);
Note: See TracChangeset for help on using the changeset viewer.