Changeset 03daabd in mainline for uspace/srv/sysman/job_closure.c


Ignore:
Timestamp:
2019-10-06T19:47:36Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
5be6361
Parents:
9559cf8
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-09-17 07:50:03)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-10-06 19:47:36)
Message:

Renaming dyn_array to array

The term dyn_array is redunant and has therefore been replaced
with the shorter term array

File:
1 edited

Legend:

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

    r9559cf8 r03daabd  
    6666            blocking_job->blocked_jobs_count);
    6767
    68         errno_t rc = dyn_array_append(&blocking_job->blocked_jobs, job_t *,
     68        errno_t rc = array_append(&blocking_job->blocked_jobs, job_t *,
    6969            blocked_job);
    7070        if (rc != EOK) {
     
    9797                        goto finish;
    9898                }
    99                 job_t *first_job = dyn_array_last(closure, job_t *);
     99                job_t *first_job = array_last(closure, job_t *);
    100100
    101101                job_add_ref(first_job);
     
    119119
    120120                /* Pass job reference to closure and add one for unit */
    121                 rc = dyn_array_append(closure, job_t *, created_job);
     121                rc = array_append(closure, job_t *, created_job);
    122122                if (rc != EOK) {
    123123                        goto finish;
     
    165165
    166166                /* Pass job reference to closure and add one for unit */
    167                 rc = dyn_array_append(closure, job_t *, created_job);
     167                rc = array_append(closure, job_t *, created_job);
    168168                if (rc != EOK) {
    169169                        goto finish;
     
    308308        }
    309309
    310         errno_t rc = dyn_array_append(job_closure, job_t *, main_job);
     310        errno_t rc = array_append(job_closure, job_t *, main_job);
    311311        if (rc != EOK) {
    312312                return rc;
     
    343343
    344344        if (rc == EOK) {
    345                 dyn_array_foreach(*job_closure, job_t *, job_it) {
     345                array_foreach(*job_closure, job_t *, job_it) {
    346346                        sysman_log(LVL_DEBUG2, "%s\t%s, refs: %u", __func__,
    347347                            unit_name((*job_it)->unit), atomic_load(&(*job_it)->refcnt));
     
    350350
    351351        /* Clean after ourselves (BFS tag jobs) */
    352         dyn_array_foreach(*job_closure, job_t *, job_it) {
     352        array_foreach(*job_closure, job_t *, job_it) {
    353353                job_t *j = (*job_it)->unit->bfs_data;
    354354                assert(*job_it == j);
Note: See TracChangeset for help on using the changeset viewer.