Changeset 102f641 in mainline for uspace/srv/taskman/task.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/task.c

    r241f1985 r102f641  
    4646        void *arg;
    4747} walker_context_t;
    48        
     48
    4949/*
    5050 * Forwards
     
    5959static size_t ht_task_key_hash(const void *key)
    6060{
    61         return *(task_id_t*)key;
     61        return *(task_id_t *)key;
    6262}
    6363
     
    7171{
    7272        task_t *ht = hash_table_get_inst(item, task_t, link);
    73         return ht->id == *(task_id_t*)key;
     73        return ht->id == *(task_id_t *)key;
    7474}
    7575
     
    127127
    128128        fibril_rwlock_initialize(&task_hash_table_lock);
    129        
     129
    130130        return EOK;
    131131}
     
    145145                return NULL;
    146146        }
    147        
     147
    148148        task_t *t = hash_table_get_inst(link, task_t, link);
    149149        return t;
     
    202202                goto finish;
    203203        }
    204        
     204
    205205        t = malloc(sizeof(task_t));
    206206        if (t == NULL) {
     
    217217        hash_table_insert(&task_hash_table, &t->link);
    218218        DPRINTF("%s: %llu\n", __func__, t->id);
    219        
     219
    220220finish:
    221221        fibril_rwlock_write_unlock(&task_hash_table_lock);
     
    223223}
    224224
    225 
    226225/**
    227226 * @}
Note: See TracChangeset for help on using the changeset viewer.