Changeset 25697163 in mainline for uspace/srv/taskman


Ignore:
Timestamp:
2019-10-06T19:47:15Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
9559cf8
Parents:
102f641
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-09-06 17:58:36)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-10-06 19:47:15)
Message:

Replacing int with errno_t

The merged code from system-daemon still used the type int
for indicating an error instead of using errno_t. This
commit corrects this mistake

Location:
uspace/srv/taskman
Files:
2 edited

Legend:

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

    r102f641 r25697163  
    119119}
    120120
    121 int tasks_init(void)
     121errno_t tasks_init(void)
    122122{
    123123        if (!hash_table_create(&task_hash_table, 0, 0, &task_hash_table_ops)) {
     
    191191}
    192192
    193 int task_intro(task_id_t id)
    194 {
    195         int rc = EOK;
     193errno_t task_intro(task_id_t id)
     194{
     195        errno_t rc = EOK;
    196196
    197197        fibril_rwlock_write_lock(&task_hash_table_lock);
  • uspace/srv/taskman/task.h

    r102f641 r25697163  
    7777extern fibril_rwlock_t task_hash_table_lock;
    7878
    79 extern int tasks_init(void);
     79extern errno_t tasks_init(void);
    8080
    8181extern task_t *task_get_by_id(task_id_t);
     
    8585extern void task_remove(task_t **);
    8686
    87 extern int task_intro(task_id_t);
     87extern errno_t task_intro(task_id_t);
    8888
    8989#endif
Note: See TracChangeset for help on using the changeset viewer.