Changeset 25697163 in mainline for uspace/srv/sysman/job_queue.c


Ignore:
Timestamp:
2019-10-06T19:47:15Z (5 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/job_queue.c

    r102f641 r25697163  
    103103 * @return error code on fail
    104104 */
    105 static int job_pre_merge(job_t *trunk, job_t *other)
     105static errno_t job_pre_merge(job_t *trunk, job_t *other)
    106106{
    107107        assert(trunk->unit == other->unit);
     
    110110        assert(other->merged_into == NULL);
    111111
    112         int rc = dyn_array_concat(&trunk->blocked_jobs, &other->blocked_jobs);
     112        errno_t rc = dyn_array_concat(&trunk->blocked_jobs, &other->blocked_jobs);
    113113        if (rc != EOK) {
    114114                return rc;
     
    134134         */
    135135        size_t observers_refs = sysman_observers_count(other);
    136         int rc = sysman_move_observers(other, trunk);
     136        errno_t rc = sysman_move_observers(other, trunk);
    137137        assert(rc == EOK);
    138138
     
    166166 * @return EBUSY when any job in closure is conflicting
    167167 */
    168 int job_queue_add_closure(job_closure_t *closure)
     168errno_t job_queue_add_closure(job_closure_t *closure)
    169169{
    170170        bool has_error = false;
    171         int rc = EOK;
     171        errno_t rc = EOK;
    172172
    173173        /* Check consistency with existing jobs. */
Note: See TracChangeset for help on using the changeset viewer.